1
0
Fork 0
forked from OpenNeo/impress

whoops, accept 1-digit donation amounts!

This commit is contained in:
Matt Dunn-Rankin 2018-01-20 17:55:21 -08:00
parent 55477baa15
commit 9771ec834d

View file

@ -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)) {