| 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'; |
| 2738 | | 2739 | |
| 2739 | if (feature) void onboardingExperimentalMacroEngine(feature); | 2740 | if (feature) void onboardingExperimentalMacroEngine(feature); |
| 2740 | } | 2741 | } |