Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ModyQyW committed Aug 1, 2024
1 parent 43a08e3 commit 7f30c98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages/[name].vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ useSeoMeta(seoMeta.value)
function renderReadme(html: string) {
return html.replace(
/((?:src)|(?:href))="(?!http|#)\.?\/?([^"]*)"/gm,
/(src|href)="(?!http|#)\.?\/?([^"]*)"/g,
(_: string, $1: string, $2: string) => {
if ($1 === 'src')
return `${$1}="https://raw.githubusercontent.com/${repo.value?.repo}/main/${$2}"`
Expand Down
3 changes: 2 additions & 1 deletion plugins/scrollbars.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export default defineNuxtPlugin(() => {
navigator
&& navigator.userAgent
&& navigator.userAgent.match(/Win[a-z0-9]*;/)
)
) {
document.documentElement.classList.add('uni-helper-scrollbars')
}
})

0 comments on commit 7f30c98

Please sign in to comment.