MOBILE-4078 urlschemes: Change regular expression to remove useless characters
parent
a8220cb894
commit
5ea6368a10
|
@ -108,7 +108,7 @@ export class CoreCustomURLSchemesProvider {
|
||||||
|
|
||||||
// Some platforms like Windows add a slash at the end. Remove it.
|
// 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.
|
// 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();
|
const modal = await CoreDomUtils.showModalLoading();
|
||||||
let data: CoreCustomURLSchemesParams;
|
let data: CoreCustomURLSchemesParams;
|
||||||
|
|
Loading…
Reference in New Issue