File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
main/java/net/chrigel/clustercode/scan/impl
test/java/net/chrigel/clustercode/scan/impl Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 2121class ProfileParserImpl implements ProfileParser {
2222
2323 public static final Pattern FORMAT_PATTERN = Pattern .compile ("%\\ {([a-zA-Z]+)=(.*)\\ }" );
24- private static final Pattern WHITESPACE_PATTERN = Pattern .compile ("([^\" ]\\ S*|\" .+?\" )\\ s*" );
24+ // (\S*?"[^"]*"|[^" ]+)\s??
25+ private static final Pattern WHITESPACE_PATTERN = Pattern .compile ("(\\ S*?\" [^\" ]*\" |[^\" ]+)\\ s??" );
2526
2627 @ Override
2728 public Optional <Profile > parseFile (Path path ) {
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ public void separateWhitespace_ShouldReturnOneElement_IfNoWhitespace() throws Ex
159159 public void separateWhitespace_ShouldReturnOneElement_IfWhitespaceIsQuoted () throws Exception {
160160 String testLine = "\" one two \" " ;
161161 assertThat (subject .separateWhitespace (testLine ))
162- .contains ("one two " , atIndex (0 ))
162+ .contains ("\" one two \" " , atIndex (0 ))
163163 .hasSize (1 );
164164 }
165165
You can’t perform that action at this time.
0 commit comments