search-string
search-string copied to clipboard
Remove Keyword Method Issue
https://github.com/mixmaxhq/search-string/blob/c2697f1551df4f32f75990a7f930656d03448522/src/searchString.js#L214
Solution:
removeKeyword(keywordToRemove, negatedToRemove) { this.textSegments = this.textSegments.filter( ({ value, negated }) => keywordToRemove !== value || negatedToRemove !== negated ); this.isStringDirty = true; }
Hi, what's this?
The removeKeyword(keywordToRemove, negatedToRemove)
method does not work in the searchString.js file
That is the solution that worked for me.
oh ok. Does a change need to be made to our documentation?
No..Only the method needs to be updated