/** * 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 */