Add null check in smMatcher function
This commit is contained in:
@@ -737,6 +737,9 @@ const matcher = (p1:string,matcherArg:matcherArg) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const smMatcher = (p1:string,matcherArg:matcherArg) => {
|
const smMatcher = (p1:string,matcherArg:matcherArg) => {
|
||||||
|
if(!p1){
|
||||||
|
return null
|
||||||
|
}
|
||||||
const lowerCased = p1.toLocaleLowerCase()
|
const lowerCased = p1.toLocaleLowerCase()
|
||||||
const db = matcherArg.db
|
const db = matcherArg.db
|
||||||
const chara = matcherArg.chara
|
const chara = matcherArg.chara
|
||||||
|
|||||||
Reference in New Issue
Block a user