diff --git a/examples/scripts/build-examples.mjs b/examples/scripts/build-examples.mjs index 50780b7640c..6919e9f4a05 100644 --- a/examples/scripts/build-examples.mjs +++ b/examples/scripts/build-examples.mjs @@ -43,8 +43,7 @@ const generateExampleFile = (categoryKebab, exampleNameKebab, setEngineType, fil const engine = engineFor(engineType); html = html.replace(/'@ENGINE'/g, JSON.stringify(engine)); - /* eslint-disable-next-line regexp/no-unused-capturing-group */ - if (/'@([A-Z0-9_]+)'/.test(html)) { + if (/'@(?:[A-Z0-9_]+)'/.test(html)) { throw new Error('HTML file still has unreplaced values'); }