Skip to content

Commit

Permalink
The upgrade to args4j broke parsing of multi-line args. This fix rest…
Browse files Browse the repository at this point in the history
…ores the behavior.

Closes #2086

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=136370934
  • Loading branch information
ChadKillingsworth authored and blickly committed Oct 17, 2016
1 parent 063f867 commit 8e1fa1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/google/javascript/jscomp/CommandLineRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ private static List<String> processArgs(String[] args) {
// Args4j has a different format that the old command-line parser.
// So we use some voodoo to get the args into the format that args4j
// expects.
Pattern argPattern = Pattern.compile("(--?[a-zA-Z_]+)=(.*)");
Pattern argPattern = Pattern.compile("(--?[a-zA-Z_]+)=(.*)", Pattern.DOTALL);
Pattern quotesPattern = Pattern.compile("^['\"](.*)['\"]$");
List<String> processedArgs = new ArrayList<>();

Expand Down

0 comments on commit 8e1fa1f

Please sign in to comment.