Skip to content

Commit fcad366

Browse files
Potential fix for code scanning alert no. 107: Incomplete string escaping or encoding
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 5b54b76 commit fcad366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/create-onchain/scripts/copy-templates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function shouldIgnoreFile(filePath, gitignoreRules) {
121121
}
122122
} catch (e) {
123123
// If regex is invalid, fall back to simple string matching
124-
if (fileName === rule || fileName.startsWith(rule.replace('*', ''))) {
124+
if (fileName === rule || fileName.startsWith(rule.replace(/\*/g, ''))) {
125125
return true;
126126
}
127127
}

0 commit comments

Comments
 (0)