Skip to content

Commit 1d726b2

Browse files
committed
refactor: add u flag to all regex
1 parent 2d1268b commit 1d726b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/scripts/src/projects/build-contracts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ async function replaceFileAll(file: string, pairs: Array<[string, string]>) {
1313
for (const [pattern, value] of pairs) {
1414
// only replace once.
1515
// eslint-disable-next-line unicorn/prefer-string-replace-all
16-
content = content.replace(new RegExp(pattern, 'imgu'), value)
16+
content = content.replace(new RegExp(pattern, 'mgu'), value)
1717
}
1818
await fs.writeFile(file, content, 'utf-8')
1919
}

0 commit comments

Comments
 (0)