Skip to content

Commit

Permalink
chore: update generate-demo-routes-file.ts (#8847)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Sep 6, 2024
1 parent d0e1675 commit 4eaf77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-demo-routes-file.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference lib="es2021" />
import {readFileSync, writeFileSync} from 'node:fs';
import {join} from 'node:path';

Expand Down Expand Up @@ -47,7 +48,6 @@ const EXCEPTIONS = [
const routes =
demoRoutesFileContent
.match(/['"`](.*)['"`]/g)
// @ts-ignore Try changing the lib compiler option to es2021 or later
?.map((route) => route.replaceAll(/['"`]/g, '')) || [];

routes.forEach((route) => {
Expand Down

0 comments on commit 4eaf77f

Please sign in to comment.