forked from OpenNeo/impress
whoops, accept 1-digit donation amounts!
This commit is contained in:
parent
55477baa15
commit
9771ec834d
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
// Start parsing at the first digit in the string, to trim leading dollar
|
// Start parsing at the first digit in the string, to trim leading dollar
|
||||||
// signs and what have you.
|
// signs and what have you.
|
||||||
var amountNumberString = (amountChoice.value.match(/[0-9].+/) || [""])[0];
|
var amountNumberString = (amountChoice.value.match(/[0-9].*/) || [""])[0];
|
||||||
var amount = Math.floor(parseFloat(amountNumberString) * 100);
|
var amount = Math.floor(parseFloat(amountNumberString) * 100);
|
||||||
|
|
||||||
if (!isNaN(amount)) {
|
if (!isNaN(amount)) {
|
||||||
|
|
Loading…
Reference in a new issue