سامانه صدور فاکتور و حسابداری
fix: correctly detect single literal escape at SQL EOF
davoodmehraban89 committed
Nov 17, 2026 at 08:03 UTC
a977b51099824cf35706bf9297a6074339295695
1 file changed
+1
-1
scripts/check-migration-file-endings.mjs
+1
-1
@@ -8,7 +8,7 @@ const failures = [];
8
for (const name of files) {
9
const file = path.join(root, name);
10
const content = fs.readFileSync(file, 'utf8');
11
- if (/(?:\\\\[nrt]|\\\\)$/.test(content)) {
11
+ if (/(?:\\[nrt]|\\)$/.test(content)) {
12
failures.push({ file, tail: JSON.stringify(content.slice(-40)) });
13
}
14
}