Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 91d166c

Browse files
do not support escaped backslash in ignore file
1 parent d19643e commit 91d166c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlcl/format.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ var createIgnoreMatcher = function (ignorePath) {
280280
var globPattern = "glob:{"
281281
var lines = javaFiles.readAllLines(javaPaths.get(ignorePath));
282282
for (var i=0; i < lines.size(); i++) {
283-
var line = replaceAll(replaceAll(lines[i].trim(), "\\/", javaFile.separator), "(\\\\){2}", javaFile.separator);
283+
var line = replaceAll(lines[i].trim(), "(\\\\)", "/");
284284
if (line.length > 0 && line.indexOf('#') === -1) {
285285
if (globPattern.length > 6) {
286286
globPattern += ",";

0 commit comments

Comments
 (0)