Anatoly03/RegexCensor

bug report + npm version is behind on features

Opened this issue · 4 comments

rb365 commented

This is an amazing library, thank you so much for your work!
Just wanted to point out that I noticed that npm version is behind on features and would be great to release them for everyone :)

rb365 commented

also there is a bug on this line:

this.patterns.addWord(field)

it should be this.addWord(field) instead of this.patterns.addWord(field)

rb365 commented

another bug

p += '\\w*'

before this line add:
p = p.substr(0, p.length - 2)

you just inserted * and that should be removed or it will be *\w* which will break regex

I'm sorry I've missed out, let me get back in touch and solve this issue!

@rb365 May you share your feedback to the Rust Rewrite?