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
Most of the execution time of this package is on the call view.find_all or view.find which uses a regular expression to search for the words, returning the regions used.
Currently the regular expression is :
'(?<![\\w])'+re.escape(string)+'\\b'
Can you thing on a way to improve it?
There is also situations on which this expression raises:
RuntimeError: The complexity of matching the regular expression exceeded predefined bounds. Try refactoring the regular expression to make each choice made by the state machine unambiguous. This exception is thrown to prevent "eternal" matches that take an indefinite
The text was updated successfully, but these errors were encountered:
It seems like a pretty straightforward regex... I'm not sure why the error talks about its complexity, unless we're running it when there's a huge selection or something. There's no branching or anything, so I'm not sure how we could dial it in.
Most of the execution time of this package is on the call view.find_all or view.find which uses a regular expression to search for the words, returning the regions used.
Currently the regular expression is :
Can you thing on a way to improve it?
There is also situations on which this expression raises:
The text was updated successfully, but these errors were encountered: