Skip to content

Commit 643122e

Browse files
Experiments: fix edge case in experiment rollout detection (#3497)
Co-authored-by: V <vendicated@riseup.net>
1 parent 310d8e6 commit 643122e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/plugins/experiments/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ export default definePlugin({
6868
{
6969
find: 'type:"user",revision',
7070
replacement: {
71-
match: /!(\i)&&"CONNECTION_OPEN".+?;/g,
72-
replace: "$1=!0;"
71+
match: /!(\i)(?=&&"CONNECTION_OPEN")/,
72+
replace: "!($1=true)"
7373
}
7474
},
7575
{

0 commit comments

Comments
 (0)