Permalink
Browse files

Fix changelog parsing to be less greedy with spaces.

  • Loading branch information...
GraylinKim committed Jul 20, 2012
1 parent e102b4d commit a7e6d78cb3101451db489693ece7721a49224e42
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/gov/nysenate/openleg/scripts/Push.java
@@ -22,7 +22,7 @@
public class Push {
private static Logger logger = Logger.getLogger(Push.class);
- private static Pattern changePattern = Pattern.compile("\\s*(.*)\\s+(NEW|DELETE|MODIFIED)");
+ private static Pattern changePattern = Pattern.compile("\\s*(.*?)\\s+(NEW|DELETE|MODIFIED)");
public static HashMap<String, Storage.Status> parseChanges(Iterable<String> lines) {
HashMap<String, Storage.Status> changes = new HashMap<String, Storage.Status>();
for (String line : lines) {

0 comments on commit a7e6d78

Please sign in to comment.