aboutsummaryrefslogtreecommitdiff
path: root/chrome/content/common.js
diff options
context:
space:
mode:
authorEinar Egilsson2007-05-28 22:35:59 +0000
committerEinar Egilsson2007-05-28 22:35:59 +0000
commitca4130f47bbe7f461dc1bc29d4aebb2dec305677 (patch)
tree4d5ddf0f7b26f15fc65140dfe94d389d10209618 /chrome/content/common.js
parenta7da44a01a575246c9fb55665c15ce9a9a400814 (diff)
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@55 119bf307-c92d-0410-89bd-8f53e6181181
Diffstat (limited to 'chrome/content/common.js')
-rw-r--r--chrome/content/common.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/chrome/content/common.js b/chrome/content/common.js
deleted file mode 100644
index 7d13e4b..0000000
--- a/chrome/content/common.js
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-var RedirectorCommon = {
-
- wildcardMatch : function(pattern, text) {
- var parts
- , part
- , i
- , pos;
-
- parts = pattern.split('*');
-
- for (i in parts) {
-
- part = parts[i];
-
- pos = text.indexOf(part);
-
- if (pos == -1) {
- return false;
- }
-
- if (i == 0 && pos != 0) {
- return false;
- }
-
- if (i == parts.length -1 && i != "" && text.substr(text.length - part.length) != part) {
- return false;
-
- }
-
- text = text.substr(pos + part.length);
- }
-
- return true;
- }
-}; \ No newline at end of file