Skip to content

Commit

Permalink
Camel to Pascal: fixed pattern to work with leading white space
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveeclipse committed Nov 29, 2015
1 parent 22eca16 commit 3b49324
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class ChangeCase extends AbstractReplaceAction {
private static final int KEY_CAPITALIZE = 3;
private static final int KEY_CAMEL = 4;
private static final int KEY_CAMEL_TO_PASCAL = 5;
private static final Pattern PASCAL = Pattern.compile("[A-Z]+.*");
private static final Pattern PASCAL = Pattern.compile("\\s*[A-Z]+.*");

@Override
protected String performReplace(String line, int actionKey) {
Expand Down

0 comments on commit 3b49324

Please sign in to comment.