Skip to content

Commit b8d66ec

Browse files
authored
Merge pull request #47 from telemetryflow/alert-autofix-1
Potential fix for code scanning alert no. 1: Incomplete string escaping or encoding
2 parents 88dac40 + b3fa4a0 commit b8d66ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/standardization/validators/coverage/test-structure-validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ export class TestStructureValidatorService implements TestStructureValidator {
776776

777777
// 4. Check against naming conventions
778778
for (const convention of this.NAMING_CONVENTIONS) {
779-
const pattern = convention.pattern.replace('**/', '').replace('*', '.*');
779+
const pattern = convention.pattern.replace('**/', '').replace(/\*/g, '.*');
780780
const regex = new RegExp(pattern);
781781
if (regex.test(fileName)) {
782782
return true;

0 commit comments

Comments
 (0)