this repo has no description

experiments: fix staff settings patch

+4 -4
+4 -4
packages/core-extensions/src/experiments/index.ts
··· 20 20 { 21 21 find: ".HEADER_BAR)", 22 22 replace: { 23 - match: /&&\((.)\?\(0,/, 23 + match: /&&\((\i)\?\(0,/, 24 24 replacement: (_, isStaff) => 25 25 `&&(((moonlight.getConfigOption("experiments","devtools")??false)?true:${isStaff})?(0,` 26 26 } ··· 47 47 { 48 48 find: "shouldShowLurkerModeUpsellPopout:", 49 49 replace: { 50 - match: /\.useReducedMotion,isStaff:(.),/, 51 - replacement: (_, isStaff) => 52 - `.useReducedMotion,isStaff:(moonlight.getConfigOption("experiments","staffSettings")??false)?true:${isStaff},` 50 + match: /\.useReducedMotion,isStaff:(\i)(,|})/, 51 + replacement: (_, isStaff, trail) => 52 + `.useReducedMotion,isStaff:(moonlight.getConfigOption("experiments","staffSettings")??false)?true:${isStaff}${trail}` 53 53 } 54 54 } 55 55 ];