diff options
author | Wojtek Kosior <koszko@koszko.org> | 2021-06-30 14:12:43 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2021-06-30 14:13:04 +0200 |
commit | cd5272acb47a53ad71e5a6bcbcb4f712bdd285c5 (patch) | |
tree | 625f92362000c483719a8b1fb70c23979a8dba60 /common/url_item.js | |
parent | 261548ff184926567a623e90df7954aeef842d59 (diff) | |
download | browser-extension-cd5272acb47a53ad71e5a6bcbcb4f712bdd285c5.tar.gz browser-extension-cd5272acb47a53ad71e5a6bcbcb4f712bdd285c5.zip |
refactor 3 miscellaneous fnctionalities to a their single own file
Diffstat (limited to 'common/url_item.js')
-rw-r--r-- | common/url_item.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/common/url_item.js b/common/url_item.js deleted file mode 100644 index 102f117..0000000 --- a/common/url_item.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Myext stripping url from query and target - * - * Copyright (C) 2021 Wojtek Kosior - * Redistribution terms are gathered in the `copyright' file. - */ - -function url_item(url) -{ - let url_re = /^([^?#]*).*$/; - let match = url_re.exec(url); - return match[1]; -} - -/* - * EXPORTS_START - * EXPORT url_item - * EXPORTS_END - */ |