D
D
Dmitry Arushanov2018-03-27 00:15:37
JavaScript
Dmitry Arushanov, 2018-03-27 00:15:37

How to delete a word when removing a letter from it?

Good day to all. There is an input in which the user can enter text \ edit it, etc ... The
input searches the site.
Example
Vasya OR Kolya AND NOT Petrov.
In case of deleting a letter from any place for Vasya \ Kolya \ Petrov - standard behavior.
If I remove a letter anywhere from OR / AND NOT / etc then the whole word needs to be removed.
test change event. There is an old and a new meaning.
How to compare them correctly and determine what the difference is in this place, and remove the desired design?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question