summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-02-13 14:16:39 +0100
committerTor Andersson <tor.andersson@artifex.com>2014-02-13 16:11:51 +0100
commitddfe0044ce13f5a0b3d3d3eca1319530e8bc60aa (patch)
tree2b1c9c5107ffa4297584a21180072d149ceb37dd /source/pdf
parent2f5833b27d744e5f1933062c2cb3f73a4416722b (diff)
downloadmupdf-ddfe0044ce13f5a0b3d3d3eca1319530e8bc60aa.tar.xz
pdf-util.js: Fix some regexps.
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/js/pdf-util.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/pdf/js/pdf-util.js b/source/pdf/js/pdf-util.js
index 359563e1..dd7aa09c 100644
--- a/source/pdf/js/pdf-util.js
+++ b/source/pdf/js/pdf-util.js
@@ -122,10 +122,10 @@ util.printx = function(fmt, val)
break;
case 'A':
- m = val.match(/[A-z]/);
+ m = val.match(/[A-Za-z]/);
if (!m) return res;
res += MuPDF.convertCase(m[0],cs);
- val = val.replace(/^[^A-z]*[A-z]/,'');
+ val = val.replace(/^[^A-Za-z]*[A-Za-z]/,'');
break;
case '9':
@@ -563,7 +563,7 @@ function AFSpecial_KeystrokeEx(fmt)
break;
case 'A':
- m = val.match(/^[A-z]/);
+ m = val.match(/^[A-Za-z]/);
if (!m)
{
event.rc = false;
@@ -693,7 +693,7 @@ function AFNumber_Keystroke(nDec, sepStyle, negStyle, currStyle, strCurrency, bC
event.rc = false;
if (!event.rc)
- app.alert("The value entered does not match the format of the field [ "+event.target.name+" ]");
+ app.alert("The value entered ("+event.value+") does not match the format of the field ["+event.target.name+"]");
}
}