Skip to content

Commit 00cfc77

Browse files
committed
Revert "fix file lookup for exclude patterns"
This reverts commit 74630b0.
1 parent 4ec3289 commit 00cfc77

File tree

1 file changed

+1
-1
lines changed
  • javascript/extractor/src/com/semmle/js/extractor

1 file changed

+1
-1
lines changed

javascript/extractor/src/com/semmle/js/extractor/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public boolean matches(String path) {
344344
for (String pattern : ap.getZeroOrMore(P_EXCLUDE))
345345
addPathPattern(excludes, System.getProperty("user.dir"), pattern);
346346
for (String excl : ap.getZeroOrMore(P_EXCLUDE_PATH)) {
347-
File exclFile = new File(new File(System.getProperty("user.dir")), excl).getAbsoluteFile();
347+
File exclFile = new File(excl).getAbsoluteFile();
348348
String base = exclFile.getParent();
349349
for (String pattern : NEWLINE.split(new WholeIO().strictread(exclFile)))
350350
addPathPattern(excludes, base, pattern);

0 commit comments

Comments
 (0)