summaryrefslogtreecommitdiffstats
path: root/demo/example.js
diff options
context:
space:
mode:
authorMike Hamburg <github@shiftleft.org>2012-01-24 20:05:16 -0800
committerMike Hamburg <github@shiftleft.org>2012-01-24 20:05:16 -0800
commit933f8f8ec10fd5c305ec83573e4528cbcefd1729 (patch)
tree71d822c1c04ec92c20e8e9c2d0fd60f59fc70134 /demo/example.js
parentf99e36bcf0be863f6cb83906d1138163c6ea7a65 (diff)
downloadsjcl-933f8f8ec10fd5c305ec83573e4528cbcefd1729.zip
sjcl-933f8f8ec10fd5c305ec83573e4528cbcefd1729.tar.gz
sjcl-933f8f8ec10fd5c305ec83573e4528cbcefd1729.tar.bz2
fix demo when json is disabled
Diffstat (limited to 'demo/example.js')
-rw-r--r--demo/example.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/demo/example.js b/demo/example.js
index db1d572..940402b 100644
--- a/demo/example.js
+++ b/demo/example.js
@@ -80,7 +80,7 @@ function doEncrypt() {
v.ciphertext = ct;
v.adata = '';
} else {
- v.ciphertext = ct.match(/ct:"([^"]*)"/)[1]; //"
+ v.ciphertext = ct.match(/"ct":"([^"]*)"/)[1]; //"
}
v.plaintext = '';