summaryrefslogtreecommitdiff
path: root/common/url_item.js
diff options
context:
space:
mode:
Diffstat (limited to 'common/url_item.js')
-rw-r--r--common/url_item.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/common/url_item.js b/common/url_item.js
index 9f4b118..102f117 100644
--- a/common/url_item.js
+++ b/common/url_item.js
@@ -5,15 +5,15 @@
* Redistribution terms are gathered in the `copyright' file.
*/
-"use strict";
+function url_item(url)
+{
+ let url_re = /^([^?#]*).*$/;
+ let match = url_re.exec(url);
+ return match[1];
+}
-(() => {
- function url_item(url)
- {
- let url_re = /^([^?#]*).*$/;
- let match = url_re.exec(url);
- return match[1];
- }
-
- window.url_item = url_item;
-})();
+/*
+ * EXPORTS_START
+ * EXPORT url_item
+ * EXPORTS_END
+ */