Skip to content

Commit

Permalink
πŸš‘ Use ES5 compatible syntax for RegEx
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasrohmer committed Aug 20, 2020
1 parent 3c31276 commit 71c4ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playground/src/experiments/experiments.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const EXPERIMENTS_ITEM_PATTERN = /(?:\{\s)(.*?)(?:})/gms;
// Matches id from item, e.g: id: 'amp-access-iframe'
const EXPERIMENTS_ID_PATTERN = /(?:id: ')(.*?)(?:')/gm;
// Matches name from item, e.g: 'AMP Access JWT prototype'
const EXPERIMENTS_NAME_PATTERN = /(?<=name:\s)(.*?)(?=,\n)/gms;
const EXPERIMENTS_NAME_PATTERN = /(?:name: ')(.*?)(?:')/gm;

export const EVENT_TOGGLE_EXPERIMENT = 'event-toggle-experiment';

Expand Down

0 comments on commit 71c4ce0

Please sign in to comment.