Skip to content

Commit

Permalink
Fix another eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
willeastcott committed Nov 14, 2024
1 parent 15d5d0d commit cd52e21
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/scripts/build-examples.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {

Check failure on line 46 in examples/scripts/build-examples.mjs

View workflow job for this annotation

GitHub Actions / Lint

Unexpected unnecessary non-capturing group. This group can be removed without changing the behaviour of the regex
throw new Error('HTML file still has unreplaced values');
}

Expand Down

0 comments on commit cd52e21

Please sign in to comment.