summaryrefslogtreecommitdiff
path: root/dependencies.js
diff options
context:
space:
mode:
authorChhavi2016-07-05 17:58:07 +0000
committerChhavi2016-07-05 17:58:07 +0000
commitf66e69844397a2c103942e17082bbb7d8366ae47 (patch)
tree6e7e29b9fa1e8ac6c34673e1d338610c0116d9e8 /dependencies.js
parentd56d14a51897847b1fe18703302401ee902e8516 (diff)
downloadxcos-on-web-f66e69844397a2c103942e17082bbb7d8366ae47.tar.gz
xcos-on-web-f66e69844397a2c103942e17082bbb7d8366ae47.tar.bz2
xcos-on-web-f66e69844397a2c103942e17082bbb7d8366ae47.zip
Updated _str2code
Diffstat (limited to 'dependencies.js')
-rw-r--r--dependencies.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/dependencies.js b/dependencies.js
index 3d336a1..c34bf4e 100644
--- a/dependencies.js
+++ b/dependencies.js
@@ -830,10 +830,14 @@ function inverse() {
function _str2code() {
var conversion = "0123456789abcdefghijklmnopqrstuvwxyz_#!$ ();:+-*/\\=.,'[]%|&<>~^";
+ var conversion2 = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ00?0 00000000$000\"{}000`0@0r";
var str = arguments[0];
var code = [];
for (var i = 0; i < str.length; i++) {
code[i] = [conversion.indexOf(str[i])];
+ if (code[i] == -1) {
+ code[i] = [conversion2.indexOf(str[i]) * -1];
+ }
}
return code;
}