Revision 261548ff
Added by koszko about 2 years ago
common/url_item.js | ||
---|---|---|
5 | 5 |
* Redistribution terms are gathered in the `copyright' file. |
6 | 6 |
*/ |
7 | 7 |
|
8 |
"use strict"; |
|
8 |
function url_item(url) |
|
9 |
{ |
|
10 |
let url_re = /^([^?#]*).*$/; |
|
11 |
let match = url_re.exec(url); |
|
12 |
return match[1]; |
|
13 |
} |
|
9 | 14 |
|
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 |
})(); |
|
15 |
/* |
|
16 |
* EXPORTS_START |
|
17 |
* EXPORT url_item |
|
18 |
* EXPORTS_END |
|
19 |
*/ |
Also available in: Unified diff
emply an sh-based build system; make some changes to blocking