MOBILE-4078 urlschemes: Change regular expression to remove useless characters

main
Alfonso Salces 2022-05-18 12:14:49 +02:00
parent a8220cb894
commit 5ea6368a10
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ export class CoreCustomURLSchemesProvider {
// Some platforms like Windows add a slash at the end. Remove it.
// Some sites add a # at the end of the URL. If it's there, remove it.
url = url.replace(/\/?#?\/?$/, '');
url = url.replace(/\/?(#.*)?\/?$/, '');
const modal = await CoreDomUtils.showModalLoading();
let data: CoreCustomURLSchemesParams;