Browse files

Fix newline parsing in StringFlag.

This was committed broken 7 years ago and no one told us til today.
  • Loading branch information...
wizjany committed Feb 12, 2019
1 parent f8e129f commit 96e7c43f56d6341dc99c12db13c08015d4b53f20
@@ -56,7 +56,7 @@ public String getDefault() {

public String parseInput(FlagContext context) throws InvalidFlagFormat {
return context.getUserInput().replaceAll("(?!\\\\)\\\\n", "\n").replaceAll("\\\\\\\\n", "\\n");
return context.getUserInput().replaceAll("(?!<\\\\)\\\\n", "\n").replaceAll("\\\\\\\\n", "\\n");


0 comments on commit 96e7c43

Please sign in to comment.