summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epirts.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/epirts.js b/epirts.js
index 1e03ef4..9a6334d 100644
--- a/epirts.js
+++ b/epirts.js
@@ -132,7 +132,7 @@ var Stripe = Epirts = (function() {
if (typeof key !== 'string') {
throw new Error('Invalid publishable key');
}
- if (!key.match(/^pk_[A-Za-z0-9_]+/)) {
+ if (!key.match(/^pk_(test|live)_[A-Za-z0-9]+/)) {
throw new Error('Invalid publishable key');
}
_key = key;