Commit 06bfc22d76ae53c4ca7492cfcef8950db0931892
1 parent
b3510b3e73
Exists in
master
RC-FROM-MSG perbaikan kondisi search
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
rc-from-msg.js
... | ... | @@ -34,7 +34,7 @@ function run(msg, rules) { |
34 | 34 | |
35 | 35 | logOnDebug('RC-FROM-MSG: checking with rule: ' + JSON.stringify(rule)); |
36 | 36 | const re = (typeof rule.flags === 'string') ? new RegExp(rule.pattern, rule.flags) : new RegExp(rule.pattern); |
37 | - if (msg.search(re) > 0) { | |
37 | + if (msg.search(re) => 0) { | |
38 | 38 | logOnDebug('RC-FROM-MSG: match with rule: ' + JSON.stringify(rule)); |
39 | 39 | return rule.rc || rule.result; |
40 | 40 | } |