From 261548ff184926567a623e90df7954aeef842d59 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Wed, 30 Jun 2021 12:28:05 +0200 Subject: emply an sh-based build system; make some changes to blocking --- common/url_item.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'common/url_item.js') 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 + */ -- cgit v1.2.3