From bf1e6bb8ea9725c3bf9f085f741c633ad833a818 Mon Sep 17 00:00:00 2001 From: Jonathan Haber Date: Fri, 6 Oct 2017 16:49:49 -0400 Subject: [PATCH] Further sanitize author for 2.0.5 --- src/main/java/com/refactify/Liquify.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/refactify/Liquify.java b/src/main/java/com/refactify/Liquify.java index 7890262..a36427c 100644 --- a/src/main/java/com/refactify/Liquify.java +++ b/src/main/java/com/refactify/Liquify.java @@ -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("_+", "_")