-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Allow users to set replaceGroups on regex PII rules
#103885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0094d80
de26d70
44e7bc5
2e48cd6
be78345
d2391b0
f978f36
0658fdd
bba2b10
4c14f64
151b086
63ef4bc
2508b4c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,3 +42,8 @@ export function useSourceGroupData() { | |
| saveToSourceGroupData, | ||
| }; | ||
| } | ||
|
|
||
| export function hasCaptureGroups(pattern: string) { | ||
| const m = pattern.match(/\(.*\)/); | ||
| return m !== null && m.length > 0; | ||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Incorrect regex capture group detection logicThe
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a fair point, but I only use this as a minimal condition to enable the checkbox. The user still needs to willingly check it to enable replacement. |
||
Uh oh!
There was an error while loading. Please reload this page.