Skip to content

Commit

Permalink
Replace spaces with underscores in changeset id
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaber committed Aug 23, 2017
1 parent b0fb94e commit 5d8f643
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/refactify/Liquify.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ private static String changeSetDeclaration(ChangeSet changeSet) {
String author = changeSet.getAuthor()
.replaceAll("\\s+", "_")
.replace("_(generated)","");
String id = changeSet.getId().replaceAll("\\s+", "_");

List<String> parts = new ArrayList<>();
parts.add("--changeset");
parts.add(author + ":" + changeSet.getId());
parts.add(author + ":" + id);

if (changeSet.getContexts() != null && !changeSet.getContexts().isEmpty()) {
parts.add("context:" + join(changeSet.getContexts(), ","));
Expand Down

0 comments on commit 5d8f643

Please sign in to comment.