mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-14 10:35:07 +00:00
Start test suite
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
const constants = require("../constants")
|
||||
const {Parser} = require("./parser/parser")
|
||||
|
||||
function tryMatch(text, against, callback) {
|
||||
let matched = text.match(against)
|
||||
@@ -28,6 +27,7 @@ function partsUsername(parts) {
|
||||
})
|
||||
}
|
||||
}
|
||||
return parts
|
||||
}
|
||||
|
||||
function partsHashtag(parts) {
|
||||
@@ -41,6 +41,7 @@ function partsHashtag(parts) {
|
||||
})
|
||||
}
|
||||
}
|
||||
return parts
|
||||
}
|
||||
|
||||
function structure(text) {
|
||||
@@ -51,3 +52,5 @@ function structure(text) {
|
||||
}
|
||||
|
||||
module.exports.structure = structure
|
||||
module.exports.partsUsername = partsUsername
|
||||
module.exports.partsHashtag = partsHashtag
|
||||
|
||||
Reference in New Issue
Block a user