Check-in Number:
|
5685 | |
Date: |
2007-Feb-08 10:38:45 (local)
2007-Feb-08 09:38:45 (UTC) |
User: | rse |
Branch: | |
Comment: |
fix parsing |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/js/jspack.js 1.1 -> 1.2
--- jspack.js 2007/02/08 09:30:09 1.1
+++ jspack.js 2007/02/08 09:38:45 1.2
@@ -482,11 +482,11 @@
for (i = 0; i < arguments.length; i++) {
if (arguments[i].substring(0, 2) != '--')
break;
- if (arguments[i].substring(2, 9) == "encoding=") {
- if (arguments[i].substring(10) == "none") { options["encoding"] = 0; }
- else if (arguments[i].substring(10) == "numeric") { options["encoding"] = 10; }
- else if (arguments[i].substring(10) == "normal") { options["encoding"] = 62; }
- else if (arguments[i].substring(10) == "highascii") { options["encoding"] = 95; }
+ if (arguments[i].substring(2, 11) == "encoding=") {
+ if (arguments[i].substring(11) == "none") { options["encoding"] = 0; }
+ else if (arguments[i].substring(11) == "numeric") { options["encoding"] = 10; }
+ else if (arguments[i].substring(11) == "normal") { options["encoding"] = 62; }
+ else if (arguments[i].substring(11) == "highascii") { options["encoding"] = 95; }
else usage();
}
else if (arguments[i].substring(2) == "fastdecode")
|
|