Skip to content

Commit

Permalink
Need to be more strict with 2.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaber committed Oct 6, 2017
1 parent 5d8f643 commit 86acdbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/refactify/Liquify.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ private static String changeSetDeclaration(ChangeSet changeSet) {
String author = changeSet.getAuthor()
.replaceAll("\\s+", "_")
.replace("_(generated)","");
String id = changeSet.getId().replaceAll("\\s+", "_");
String id = changeSet.getId()
.replaceAll("\\W+", "_")
.replaceAll("_+", "_")
.replaceAll("_$", "");

List<String> parts = new ArrayList<>();
parts.add("--changeset");
Expand Down

0 comments on commit 86acdbd

Please sign in to comment.