forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Refactor] Use iterative approach to evaluate Regex.simpleMatch (open…
…search-project#11060) * Remove adjacent duplicates to optimize regex before processing Signed-off-by: Craig Perkins <craig5008@gmail.com> * Add tests Signed-off-by: Craig Perkins <craig5008@gmail.com> * Rename to removeAdjacentDuplicates Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add additional test case Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add CHANGELOG entry Signed-off-by: Craig Perkins <cwperx@amazon.com> * Throw IllegalArgumentException if input is invalid Signed-off-by: Craig Perkins <cwperx@amazon.com> * Add a space Signed-off-by: Craig Perkins <cwperx@amazon.com> * Change error message Signed-off-by: Craig Perkins <cwperx@amazon.com> * Use iterative solution with 2 pointers Signed-off-by: Craig Perkins <cwperx@amazon.com> * Remove unused method Signed-off-by: Craig Perkins <cwperx@amazon.com> * add tests and changelog Signed-off-by: Stephen Crawford <steecraw@amazon.com> * remove bad push Signed-off-by: Stephen Crawford <steecraw@amazon.com> * Update CHANGELOG.md Signed-off-by: Stephen Crawford <65832608+scrawfor99@users.noreply.github.com> * Update CHANGELOG.md Signed-off-by: Stephen Crawford <65832608+scrawfor99@users.noreply.github.com> * spotless Signed-off-by: Stephen Crawford <steecraw@amazon.com> * Update comment Signed-off-by: Craig Perkins <cwperx@amazon.com> * re-run CI Signed-off-by: Craig Perkins <cwperx@amazon.com> --------- Signed-off-by: Craig Perkins <craig5008@gmail.com> Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: Stephen Crawford <steecraw@amazon.com> Signed-off-by: Stephen Crawford <65832608+scrawfor99@users.noreply.github.com> Co-authored-by: Stephen Crawford <steecraw@amazon.com> Co-authored-by: Stephen Crawford <65832608+scrawfor99@users.noreply.github.com>
- Loading branch information
1 parent
0a9dfec
commit 61a598b
Showing
3 changed files
with
44 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters