Skip to content

Commit

Permalink
Deploying to gh-pages from @ 4dce82c 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
OlingCat committed Jun 22, 2024
1 parent f72c9ec commit 47dc4a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const newline = /(?<=[,。、:;」)])\n(?!\n)/g;
const space = /\s+(<.+?>\p{Script=Han}.+?<\/.+?>)\s+/g
const newline = /(?<=[,。、:;」)])\n(?!\n)/gu;
const space = /\s*(<.+?>\p{Script=Han}.+?<\/.+?>)\s*/gu;
const paras = document.querySelectorAll("#content > main > p");
for (const p of paras) {
p.innerHTML = p.innerHTML.replace(newline, "");
Expand Down

0 comments on commit 47dc4a5

Please sign in to comment.