Skip to content

Commit 91a05a1

Browse files
committed
chore: suppress sonarqube false positive on test regex
1 parent 542db18 commit 91a05a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/data-masking/tests/unit/erase.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ describe('DataMasking.erase() - custom masking rules', () => {
134134
const result = masker.erase(data, {
135135
maskingRules: {
136136
email: {
137-
regexPattern: /(.)(.+?)(@.*)/,
137+
regexPattern: /(.)(.+?)(@.*)/, // NOSONAR - test data, not user input
138138
maskFormat: '$1****$3',
139139
},
140140
},

0 commit comments

Comments
 (0)