-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filterx: Redesigned regexp_search functionality
Introduced two new optional flags: keep_zero and list_mode. The result type no longer switches between dict and list based on the presence of named groups. The default result type is now dict. list_mode can force a list result, either via the flag or the type of the fillable (the fillable's type takes precedence). Match group zero is now excluded by default unless no other groups are present. This behavior can be overridden using the keep_zero flag. Additionally, the FilterXRematchState structure, shared across other regexp functions, has been updated with a generic flags field. This allows functions to pass custom options to the state without incurring additional overhead. Signed-off-by: shifter <shifter@axoflow.com>
- Loading branch information
Showing
2 changed files
with
59 additions
and
12 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