Permalink
Browse files

Adjustment to cap usage RegEx to work with $59 iPhone cap plan

  • Loading branch information...
1 parent b3896b9 commit 088e03301c24795ba55415ea3da6c3410e3031f1 @teleksterling teleksterling committed Dec 19, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/com/eightbitcloud/internode/provider/OptusFetcher.java
@@ -83,7 +83,7 @@
public OptusFetcher(Provider provider, Context ctx) {
super(provider, ctx);
- melbourneTZ = TimeZone.getTimeZone("GMT+1000");
+ melbourneTZ = TimeZone.getTimeZone("GMT+1000"); //TODO adjustment for Melbourne Daylight Saving Time (GMT+1100)
rolloverFormatter.setTimeZone(melbourneTZ);
}
@@ -376,7 +376,7 @@ public Service fetchServiceDetails(Account account, ServiceUpdateDetails identif
}
plan.setCost(parseAmount(costMatcher, 1, false));
- Pattern capSizePattern = Pattern.compile("\\$([0-9]+(.[0-9]{2})?)\\s+\\(\\$([0-9]+(.[0-9]{2})?) ex GST\\) of cap");
+ Pattern capSizePattern = Pattern.compile("\\$([0-9]+(.[0-9]{2})?)\\s+\\(\\$([0-9]+(.[0-9]{2})?) ex GST\\) of [(cap)(included value)]");
Matcher capSizeMatcher = capSizePattern.matcher(planExt);
if (capSizeMatcher.find()) {

0 comments on commit 088e033

Please sign in to comment.