Remove useless escape characters
This commit is contained in:
parent
3b3884b1a1
commit
be9f964c18
7 changed files with 16 additions and 18 deletions
|
@ -208,7 +208,7 @@ function getMimeType(type, container) {
|
|||
}
|
||||
|
||||
function getParam(name, url) {
|
||||
name = name.replace(/[\[]/, '\\\[').replace(/[\]]/, '\\\]');
|
||||
name = name.replace(/[[]/, '\\[').replace(/[\]]/, '\\]');
|
||||
const regexS = '[\\?&]' + name + '=([^&#]*)';
|
||||
const regex = new RegExp(regexS, 'i');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue