xml-parser-xo
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -132,3 +132,6 @@ "use strict"; | ||
function doctype() { | ||
const m = match(/^<!DOCTYPE\s+\S+\s+SYSTEM[^>]*>/) || match(/^<!DOCTYPE\s+\S+\s+PUBLIC[^>]*>/) || match(/^<!DOCTYPE\s+\S+\s+\[[^\]]*]>/); | ||
const m = match(/^<!DOCTYPE\s+\S+\s+SYSTEM[^>]*>/) || | ||
match(/^<!DOCTYPE\s+\S+\s+PUBLIC[^>]*>/) || | ||
match(/^<!DOCTYPE\s+\S+\s*\[[^\]]*]>/) || | ||
match(/^<!DOCTYPE\s+\S+\s*>/); | ||
if (m) { | ||
@@ -135,0 +138,0 @@ const node = { |
@@ -128,3 +128,6 @@ export class ParsingError extends Error { | ||
function doctype() { | ||
const m = match(/^<!DOCTYPE\s+\S+\s+SYSTEM[^>]*>/) || match(/^<!DOCTYPE\s+\S+\s+PUBLIC[^>]*>/) || match(/^<!DOCTYPE\s+\S+\s+\[[^\]]*]>/); | ||
const m = match(/^<!DOCTYPE\s+\S+\s+SYSTEM[^>]*>/) || | ||
match(/^<!DOCTYPE\s+\S+\s+PUBLIC[^>]*>/) || | ||
match(/^<!DOCTYPE\s+\S+\s*\[[^\]]*]>/) || | ||
match(/^<!DOCTYPE\s+\S+\s*>/); | ||
if (m) { | ||
@@ -131,0 +134,0 @@ const node = { |
{ | ||
"name": "xml-parser-xo", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"repository": "github:chrisbottin/xml-parser", | ||
@@ -5,0 +5,0 @@ "bugs": { |
@@ -223,3 +223,7 @@ export type XmlParserOptions = { | ||
function doctype(): XmlParserNodeWrapper<XmlParserDocumentTypeNode>|undefined { | ||
const m = match(/^<!DOCTYPE\s+\S+\s+SYSTEM[^>]*>/) || match(/^<!DOCTYPE\s+\S+\s+PUBLIC[^>]*>/) || match(/^<!DOCTYPE\s+\S+\s+\[[^\]]*]>/); | ||
const m = | ||
match(/^<!DOCTYPE\s+\S+\s+SYSTEM[^>]*>/) || | ||
match(/^<!DOCTYPE\s+\S+\s+PUBLIC[^>]*>/) || | ||
match(/^<!DOCTYPE\s+\S+\s*\[[^\]]*]>/) || | ||
match(/^<!DOCTYPE\s+\S+\s*>/); | ||
if (m) { | ||
@@ -226,0 +230,0 @@ const node: XmlParserDocumentTypeNode = { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
42911
833