From 8b16abf981e55280d42e7d1bff8faeddea8af488 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Tue, 2 Dec 2014 16:27:37 -0500 Subject: [PATCH] PayPal seems to be ok with commas. --- www/conservancy/static/supporter-page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/conservancy/static/supporter-page.js b/www/conservancy/static/supporter-page.js index 0c0fcb45..b19314cc 100644 --- a/www/conservancy/static/supporter-page.js +++ b/www/conservancy/static/supporter-page.js @@ -37,7 +37,7 @@ $(document).ready(function() { var value = input.val(); var errorElement=$("span", input.parent()); - var re = /^[0-9\.]+$/; + var re = /^[0-9\,\.]+$/; var isValid = (re.test(value) && parseInt(value) >= 120); if (isValid) { input.removeClass("invalid").addClass("valid");