Match lexicon words that start with # or @
This commit is contained in:
1 parent
1a4531e30f
commit
3ff36c655a
2 files changed
+21
No files matched your search
@@ -17,6 +17,11 @@ const checkLexicon = function (terms, i, world) {
|
||||
setTag([t], lexicon[word], world, false, '1-lexicon')
|
||||
return true
|
||||
}
|
||||
// '#gojetsgo' can be in the lexicon with its hash
|
||||
if (t.machine && Object.hasOwn(lexicon, t.normal)) {
|
||||
setTag([t], lexicon[t.normal], world, false, '1-lexicon-normal')
|
||||
return true
|
||||
}
|
||||
// lookup aliases in the lexicon
|
||||
if (t.alias) {
|
||||
const found = t.alias.find(str => Object.hasOwn(lexicon, str))
|
||||
|
||||
Reference in new issue
Block a user