Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1404)

Unified Diff: src/uri.js

Issue 1559006: Remove trailing regexp from .js files. (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/string.js ('k') | src/v8natives.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/uri.js
diff --git a/src/uri.js b/src/uri.js
index 5af71b6826f61aabc3ec059cfb1ff2db3fcbdb3e..3adab83d87358d9065c4ba16340444db4250eee6 100644
--- a/src/uri.js
+++ b/src/uri.js
@@ -244,7 +244,7 @@ function URIDecode(uri) {
if (cc == 61) return true;
// ?@
if (63 <= cc && cc <= 64) return true;
-
+
return false;
};
var string = ToString(uri);
@@ -268,7 +268,7 @@ function isAlphaNumeric(cc) {
if (65 <= cc && cc <= 90) return true;
// 0 - 9
if (48 <= cc && cc <= 57) return true;
-
+
return false;
}
@@ -293,7 +293,7 @@ function URIEncode(uri) {
if (cc == 95) return true;
// ~
if (cc == 126) return true;
-
+
return false;
};
@@ -316,7 +316,7 @@ function URIEncodeComponent(component) {
if (cc == 95) return true;
// ~
if (cc == 126) return true;
-
+
return false;
};
@@ -327,14 +327,14 @@ function URIEncodeComponent(component) {
function HexValueOf(c) {
var code = c.charCodeAt(0);
-
+
// 0-9
if (code >= 48 && code <= 57) return code - 48;
// A-F
if (code >= 65 && code <= 70) return code - 55;
// a-f
if (code >= 97 && code <= 102) return code - 87;
-
+
return -1;
}
« no previous file with comments | « src/string.js ('k') | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698