mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
fix no-useless-escape problem
This commit is contained in:
parent
148409bf20
commit
dfe8aaa7de
@ -41,7 +41,7 @@ export function turkInfo(): turkInformation {
|
||||
};
|
||||
|
||||
const param = function (url, name) {
|
||||
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
|
||||
name = name.replace(/[[]/, "\\[").replace(/[\]]/, "\\]");
|
||||
const regexS = "[\\?&]" + name + "=([^&#]*)";
|
||||
const regex = new RegExp(regexS);
|
||||
const results = regex.exec(url);
|
||||
|
Loading…
Reference in New Issue
Block a user