Skip to content

Commit

Permalink
Small fix to calendar parser to support entries without weekday.
Browse files Browse the repository at this point in the history
  • Loading branch information
hdweiss committed Mar 2, 2012
1 parent f926a8e commit 97c09a9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -175,7 +175,7 @@ private Date getTimeInMs(String time) throws ParseException {

private void insertNode(NodeWrapper node, String filename) throws IllegalArgumentException {
final Pattern schedulePattern = Pattern
.compile("(\\d{4}-\\d{2}-\\d{2})(?:\\s+\\w+)?\\s*(\\d{1,2}\\:\\d{2})?\\-?(\\d{1,2}\\:\\d{2})?");
.compile("(\\d{4}-\\d{2}-\\d{2})(?:[^\\d]*)(\\d{1,2}\\:\\d{2})?\\-?(\\d{1,2}\\:\\d{2})?");
Matcher propm = schedulePattern.matcher(node.getDate(db));

long beginTime;
Expand Down

0 comments on commit 97c09a9

Please sign in to comment.