This commit is contained in:
2026-08-25 19:07:34 +08:00
parent 65c01f8b3d
commit 7d36759f3f
28 changed files with 613 additions and 16 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import { fileURLToPath, pathToFileURL } from 'node:url'
export const repositoryRoot = path.resolve(fileURLToPath(new URL('..', import.meta.url)))
const normalize = (value) => value.replaceAll('\\', '/')
const attribute = (source, name) => source.match(new RegExp(`\\b${name}="([^"]*)"`))?.[1]
const attribute = (source, name) => source.match(new RegExp(`\\b${name}=(?:"([^"]*)"|'([^']*)')`))?.slice(1).find((value) => value !== undefined)
async function exists(file) {
try {