Show experimental engine onboarding for greeting macros

8c07dcda243718851aa5cf22095ef23eeeb23ae2

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -0Showing whitespace changes
public/script.js+1 -0
@@ -2735,6 +2735,7 @@ export function substituteParamsLegacy(content, _name1, _name2, _original, _grou
2735 else if (/{{\s*[!?~#/]/.test(content)) feature = 'macro flags';2735 else if (/{{\s*[!?~#/]/.test(content)) feature = 'macro flags';
2736 else if (/{{\s*[.$]/.test(content)) feature = 'variable shorthands';2736 else if (/{{\s*[.$]/.test(content)) feature = 'variable shorthands';
2737 else if (/\{\{(?:(?!\}\}).)*\{\{(?=[\s\S]*?\}\}[\s\S]*?\}\})/.test(content)) feature = 'nested macro';2737 else if (/\{\{(?:(?!\}\}).)*\{\{(?=[\s\S]*?\}\}[\s\S]*?\}\})/.test(content)) feature = 'nested macro';
2738 else if (/{{(?:greeting|charFirstMessage)(?:::\d+)?}}/i.test(content)) feature = 'greeting macro';
27382739
2739 if (feature) void onboardingExperimentalMacroEngine(feature);2740 if (feature) void onboardingExperimentalMacroEngine(feature);
2740 }2741 }