Skip to content

Commit 33ef49f

Browse files
committed
fix: use === for comparison
1 parent 7912b45 commit 33ef49f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/binding/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export function match(str: string, query: string, options: IOptions = {}): numbe
291291
console.warn(`Zadeh: bad input to match str: ${str}, query: ${query}`)
292292
return []
293293
}
294-
if (str == query) {
294+
if (str === query) {
295295
return Array.from(Array(str.length).keys())
296296
}
297297
parseOptions(options)

0 commit comments

Comments
 (0)