@mojojs/dom
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -10,3 +10,3 @@ import { BLOCK, CLOSE, EMPTY, END, NO_MORE_CONTENT, PHRASING, RAW, RCDATA, SCOPE } from './constants.js'; | ||
import { SafeString, escapeRegExp, stickyMatch, xmlUnescape } from '@mojojs/util'; | ||
const ATTR_RE = new RegExp(`([^<>=\\s/]+|/)(?:\\s*=\\s*(?:(?<quote>["'])(.*?)\\k<quote>|([^>\\s]*)))?\\s*`, 'ys'); | ||
const ATTR_RE = new RegExp(`([^<>=\\s/0-9.\\-][^<>=\\s/]*|/)(?:\\s*=\\s*(?:(?<quote>["'])(.*?)\\k<quote>|([^>\\s]*)))?\\s*`, 'ys'); | ||
const TEXT_RE = new RegExp(`([^<]+)`, 'ys'); | ||
@@ -17,3 +17,3 @@ const DOCTYPE_RE = new RegExp(`<!DOCTYPE\\s*(\\w+(?:(?:\\s+\\w+)?(?:\\s+(?:"[^"]*"|'[^']*'))+)?(?:\\s+\\[.+?\\])?\\s*)>`, 'ysi'); | ||
const PI_RE = new RegExp(`<\\?(.*?)\\?>`, 'ys'); | ||
const TAG_RE = new RegExp(`<\\s*(\\/)?\\s*([^<>\\s]+)\\s*((?:${ATTR_RE.source})*)>`, 'ys'); | ||
const TAG_RE = new RegExp(`<\\s*(\\/)?\\s*([^<>\\s/0-9.\\-][^<>\\s/]*)\\s*((?:${ATTR_RE.source})*?)>`, 'ys'); | ||
const RUNAWAY_RE = new RegExp(`<`, 'y'); | ||
@@ -20,0 +20,0 @@ export class Parser { |
{ | ||
"name": "@mojojs/dom", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A fast and minimalistic HTML/XML DOM parser with CSS selectors", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
157939