Skip to content

Commit

Permalink
Strip leading characters as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaber committed Oct 6, 2017
1 parent bf1e6bb commit 9f76b14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/refactify/Liquify.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,12 @@ private static String changeSetDeclaration(ChangeSet changeSet) {
.replace("_(generated)","")
.replaceAll("\\W+", "_")
.replaceAll("_+", "_")
.replaceAll("^_", "")
.replaceAll("_$", "");
String id = changeSet.getId()
.replaceAll("\\W+", "_")
.replaceAll("_+", "_")
.replaceAll("^_", "")
.replaceAll("_$", "");

List<String> parts = new ArrayList<>();
Expand Down

0 comments on commit 9f76b14

Please sign in to comment.