john-wagster opened a new pull request, #17001:
URL: https://github.com/apache/lucene/pull/17001

   Fixes #16999.
   
   Since `RegExp#toAutomaton()` no longer determinizes, the `String` 
constructors of `SimplePatternTokenizer` pass a possibly non-deterministic 
automaton to the `Automaton` constructor, which rejects it (e.g. for `ab|ac`). 
`determinizeWorkLimit` was also silently ignored.
   
   This determinizes with `determinizeWorkLimit`, mirroring 
`SimplePatternSplitTokenizer`.
   
   Tests cover a non-deterministic pattern, longest-match behavior with 
overlapping alternatives, and that `determinizeWorkLimit` is honored.
   
   I added the CHANGES entry under 11.0.0; happy to move it to a different 
version.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to