Merge pull request #3283 from alfonso-salces/MOBILE-4078
MOBILE-4078 urlschemes: Change regular expression to remove useless c…main
commit
a6d30a50c3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue