Skip to content

Commit

Permalink
add comment to delimiter regex
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Oct 14, 2022
1 parent 3477858 commit d7f0ae2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scriptlets/trusted-click-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export function trustedClickElement(source, selectors, extraMatch = '', delay =
const LOCAL_STORAGE_MATCH_MARKER = 'localStorage:';
const SELECTORS_DELIMITER = ',';
const COOKIE_STRING_DELIMITER = ';';
// Regex to split match pairs by commas, avoiding the ones included in regexes
const EXTRA_MATCH_DELIMITER = /(,\s*){1}(?=cookie:|localStorage:)/;

let parsedDelay;
Expand Down

0 comments on commit d7f0ae2

Please sign in to comment.