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 e6e32c6 commit 15d5d0d
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 @@ -116,8 +116,7 @@ export const build = (env = {}) => {
const scriptPath = resolve(path, `${exampleNameKebab}.${file}`);
let script = fs.readFileSync(scriptPath, 'utf-8');

/* eslint-disable-next-line regexp/no-unused-capturing-group */
if (/\.(mjs|js)$/.test(file)) {
if (/\.(?:mjs|js)$/.test(file)) {
script = patchScript(script);
}
fs.writeFileSync(`${MAIN_DIR}/dist/iframe/${name}.${file}`, script);
Expand Down

0 comments on commit 15d5d0d

Please sign in to comment.