Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
Fixed money parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Staley Shyiko committed Aug 31, 2010
1 parent 828a7f8 commit fde064b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -142,7 +142,7 @@ private String parseLink(String link) throws ParsingException {
}

private int parseMoney(String money) {
money = money.replace("$", "");
money = money.replace("$", "").replace(",", "");
int dotIndex = money.indexOf(".");
if (dotIndex > -1)
money = money.substring(0, dotIndex);
Expand Down
Expand Up @@ -110,7 +110,7 @@ private Date parseDate(String date) throws ParseException {
}

private int parseMoney(String money) {
money = money.replace("$", "");
money = money.replace("$", "").replace(",", "");
int dotIndex = money.indexOf(".");
if (dotIndex > -1)
money = money.substring(0, dotIndex);
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/active-contests-page-ex.html
Expand Up @@ -1098,7 +1098,7 @@
<STRONG>08.24.2010</STRONG><BR>14:05 EDT
</TD>
<TD class="valueC">
$650.00
$6,050.00
</TD>
<TD class="valueC">
$130.00
Expand Down

0 comments on commit fde064b

Please sign in to comment.