mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +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) {
|
const param = function (url, name) {
|
||||||
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
|
name = name.replace(/[[]/, "\\[").replace(/[\]]/, "\\]");
|
||||||
const regexS = "[\\?&]" + name + "=([^&#]*)";
|
const regexS = "[\\?&]" + name + "=([^&#]*)";
|
||||||
const regex = new RegExp(regexS);
|
const regex = new RegExp(regexS);
|
||||||
const results = regex.exec(url);
|
const results = regex.exec(url);
|
||||||
|
Loading…
Reference in New Issue
Block a user