Skip to content

Commit de1e65f

Browse files
committed
Merge pull request #2074 from matthijskooijman/ide-1.5.x-dep-spaces
Unescape special characters in dependency files
2 parents c12e24a + 726f2ba commit de1e65f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/processing/app/debug/Compiler.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ private boolean isAlreadyCompiled(File src, File obj, File dep, Map<String, Stri
297297
line = line.substring(0, line.length() - 1);
298298
}
299299
line = line.trim();
300+
// Strip backslash escape sequences. This replaces \\ with \ and
301+
// removes all other backslashes
302+
line = line.replaceAll("\\\\(.)", "$1");
300303
if (line.length() == 0) continue; // ignore blank lines
301304
if (need_obj_parse) {
302305
// line is supposed to be the object file - make sure it really is!

0 commit comments

Comments
 (0)