haketilo / common / url_item.js @ b93f26bf
1 |
/**
|
---|---|
2 |
* Myext stripping url from query and target
|
3 |
*
|
4 |
* Copyright (C) 2021 Wojtek Kosior
|
5 |
* Redistribution terms are gathered in the `copyright' file.
|
6 |
*/
|
7 |
|
8 |
"use strict"; |
9 |
|
10 |
(() => { |
11 |
function url_item(url) |
12 |
{
|
13 |
let url_re = /^([^?#]*).*$/; |
14 |
let match = url_re.exec(url); |
15 |
return match[1]; |
16 |
}
|
17 |
|
18 |
window.url_item = url_item; |
19 |
})();
|
- « Previous
- 1
- …
- 7
- 8
- 9
- Next »