You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@daedalus28 Have you considered just using string operators for this ie. str.indexOf, opposed to the regexp implementation you are using now? In many cases string operators can run faster and also with the str.indexOf approach you will no longer need to run the input through the 'words' fn to create an array which may be costly in terms of speed as well.
Similar to #138, if we instead construct 1 regex, it will be much faster. The match any case is easy - just join
words
with|
.The text was updated successfully, but these errors were encountered: