highlight-html-syntax
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -15,3 +15,3 @@ const Highlight = (string) => { | ||
string = string.replace(/(\s.*)(?==<)/g, ' <span class="global">$1</span>'); | ||
string = string.replace(/(?!<span\sclass=".*">.*<\/span>)(<[^\s>]+)/g, '<span class="method">$1</span>'); | ||
string = string.replace(/(?!<span\sclass=".*">.*<\/span>)(<[^\s&;]+)/g, '<span class="method">$1</span>'); | ||
string = string.replace(/(?!<span\sclass=".*">.*<\/span>)(\/?>)/g, '<span class="method">$1</span>'); | ||
@@ -18,0 +18,0 @@ |
{ | ||
"name": "highlight-html-syntax", | ||
"version": "1.0.3", | ||
"description": "Syntax Highlighter for HTML code", | ||
"version": "1.1.0", | ||
"description": "Simple Syntax Highlighter for HTML code", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
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
30806