From 71c4ce04ad4ff0ac0ed193ac50dbc58c06674645 Mon Sep 17 00:00:00 2001 From: Matthias Rohmer Date: Thu, 20 Aug 2020 11:36:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Use=20ES5=20compatible=20syntax?= =?UTF-8?q?=20for=20RegEx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playground/src/experiments/experiments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playground/src/experiments/experiments.js b/playground/src/experiments/experiments.js index ad0014d8194..f3d4575d7e9 100644 --- a/playground/src/experiments/experiments.js +++ b/playground/src/experiments/experiments.js @@ -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';