summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar fab <fabrice.leal.ch@gmail.com>2018-12-06 21:59:47 +0000
committerGravatar fab <fabrice.leal.ch@gmail.com>2018-12-06 21:59:47 +0000
commit8e998f7d96d3236e182ea54cc077f87538651af3 (patch)
tree87cc68dc75d1d087591fa0f4da97a9be2147e792 /lib
parent0d28aca9aebaf8aab32c96f8477d7121ac16b4e9 (diff)
ord
Diffstat (limited to 'lib')
-rw-r--r--lib/js/urweb.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js
index 2b34f8dd..18d47847 100644
--- a/lib/js/urweb.js
+++ b/lib/js/urweb.js
@@ -35,7 +35,7 @@ function isAlnum(c) { return isAlpha(c) || isDigit(c); }
function isBlank(c) { return c == ' ' || c == '\t'; }
function isSpace(c) { return isBlank(c) || c == '\r' || c == '\n'; }
function isXdigit(c) { return isDigit(c) || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F'); }
-function ord(c) { return c.charCodeAt(0); }
+function ord(c) { return c.codePointAt(0); }
function isPrint(c) { return ord(c) > 31 && ord(c) != 127; }
function toLower(c) { return c.toLowerCase(); }
function toUpper(c) {