Skip to content

Commit

Permalink
Further sanitize author for 2.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaber committed Oct 6, 2017
1 parent 86acdbd commit bf1e6bb
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 @@ -91,7 +91,10 @@ private static void executeChangeLog(final ConversionArguments conversionArgumen
private static String changeSetDeclaration(ChangeSet changeSet) {
String author = changeSet.getAuthor()
.replaceAll("\\s+", "_")
.replace("_(generated)","");
.replace("_(generated)","")
.replaceAll("\\W+", "_")
.replaceAll("_+", "_")
.replaceAll("_$", "");
String id = changeSet.getId()
.replaceAll("\\W+", "_")
.replaceAll("_+", "_")
Expand Down

0 comments on commit bf1e6bb

Please sign in to comment.