Skip to content

Commit

Permalink
fix: lint and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed Aug 29, 2024
1 parent ed3fa68 commit d04d6d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
},
"main": "dist/index.node.cjs",
"module": "dist/index.browser.js",
"typings": "dist/index.node.d.ts",
"types": "dist/index.node.d.ts",
"typings": "dist/index.node.d.ts",
"files": [
"dist",
"jsx-runtime"
Expand All @@ -55,8 +55,8 @@
},
"scripts": {
"build": "npm run clean && npm run build:tsup",
"build:tsup": "tsup src/index.browser.ts src/index.node.ts src/jsx-runtime.ts --dts --sourcemap --format esm,cjs",
"build:docs": "typedoc src/index.ts",
"build:tsup": "tsup src/index.browser.ts src/index.node.ts src/jsx-runtime.ts --dts --sourcemap --format esm,cjs",
"check": "tsc --noEmit -p tsconfig.json",
"clean": "rm -rf dist",
"lint": "eslint .",
Expand All @@ -68,8 +68,7 @@
},
"dependencies": {
"css-what": "^6.1.0",
"entities": "^5.0.0",
"zeed": "^0.24.13"
"entities": "^5.0.0"
},
"devDependencies": {
"@antfu/eslint-config": "^3.0.0",
Expand All @@ -82,6 +81,7 @@
"typedoc": "^0.26.6",
"typescript": "^5.5.4",
"vite": "^5.4.2",
"vitest": "^2.0.5"
"vitest": "^2.0.5",
"zeed": "^0.24.13"
}
}
4 changes: 2 additions & 2 deletions src/htmlparser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class HtmlParser {
treatAsChars = true
}
}

// end tag
else if (html.substring(0, 2) === '</') {
match = this.endTagRe.exec(html)
Expand All @@ -74,7 +74,7 @@ export class HtmlParser {
if (match) {
html = RegExp.rightContext
treatAsChars = false
let tagName = this.parseStartTag(RegExp.lastMatch, match[1], match)
const tagName = this.parseStartTag(RegExp.lastMatch, match[1], match)
if (tagName === 'script' || tagName === 'style') {
index = html.search(new RegExp(`<\/${tagName}`, 'i'))
if (index !== -1) {
Expand Down

0 comments on commit d04d6d4

Please sign in to comment.