Skip to content

Commit

Permalink
escape
Browse files Browse the repository at this point in the history
  • Loading branch information
Bao Zhiyuan committed Aug 29, 2024
1 parent 6ae6bf3 commit d6ca5aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/build.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import fs from 'node:fs'
import querystring from 'node:querystring'

fs.rmSync('dist', { recursive: true, force: true })
fs.mkdirSync('dist')
Expand All @@ -12,7 +13,7 @@ const gameCards = games
.map(d =>
/*html*/ `
<div>
<a href='${d}/index.html'>${d}</a>
<a href='${querystring.escape(d)}/index.html'>${d}</a>
</div>
`.trim(),
)
Expand Down

0 comments on commit d6ca5aa

Please sign in to comment.