We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a8f26a commit 1e12d4fCopy full SHA for 1e12d4f
src/diffDOM/virtual/fromString.ts
@@ -5,7 +5,7 @@ import { DiffDOMOptionsPartial, nodeType } from "../types"
5
const tagRE =
6
/<\s*\/*[a-zA-Z:_][a-zA-Z0-9:_\-.]*\s*(?:"[^"]*"['"]*|'[^']*'['"]*|[^'"/>])*\/*\s*>|<!--(?:.|\n|\r)*?-->/g
7
8
-const attrRE = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g
+const attrRE = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?("[^"]*"|'[^']*')/g
9
10
function unescape(string: string) {
11
return string
0 commit comments