This repository has been archived by the owner on Jan 2, 2023. It is now read-only.
Values stored in groups don't retain the original types #24
Labels
enhancement
New feature or request
I was using the regex groups features and noticed that for fields with non-string type values e.g. numbers, boolean etc..., end up being cast into string when they are added into the groups object in the result. The matches object in the result seems to be normal.
Here is an example test to illustrate
Test result
We might want to look into this issue, especially if the user is actually writing a regex group in the pattern to be matching by specific type.
The text was updated successfully, but these errors were encountered: