Add a way to make RegEx
compilation quiet (i.e. not print an error to stdout).
#10381
Labels
Milestone
RegEx
compilation quiet (i.e. not print an error to stdout).
#10381
Describe the project you are working on
Search field, wich allows user to search using regex.
Describe the problem or limitation you are having in your project
Currently there is no way to hide regex compilation error, so if regex code provided by user, one can't validate it without error printing in stdout.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Add a second parameter to
RegEx.compile
andRegEx.create_from_string
namedshow_error
withtrue
default value.Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Samples:
Same in
RegEx.compile
If this enhancement will not be used often, can it be worked around with a few lines of script?
No
Is there a reason why this should be core and not an add-on in the asset library?
N/A
The text was updated successfully, but these errors were encountered: