search-string icon indicating copy to clipboard operation
search-string copied to clipboard

Remove Keyword Method Issue

Open harshadsatra opened this issue 3 years ago • 4 comments

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; }

harshadsatra avatar Mar 08 '21 06:03 harshadsatra

Hi, what's this?

bradvogel avatar Mar 10 '21 00:03 bradvogel

The removeKeyword(keywordToRemove, negatedToRemove) method does not work in the searchString.js file

That is the solution that worked for me.

harshadsatra avatar Mar 11 '21 19:03 harshadsatra

oh ok. Does a change need to be made to our documentation?

bradvogel avatar Mar 11 '21 19:03 bradvogel

No..Only the method needs to be updated

harshadsatra avatar Mar 13 '21 14:03 harshadsatra