@adplata/html-validate-offline
Advanced tools
+1
-1
| { | ||
| "name": "@adplata/html-validate-offline", | ||
| "version": "1.0.3", | ||
| "version": "1.0.4", | ||
| "description": "Html validate offline", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
+6
-1
@@ -13,3 +13,3 @@ ## Installation | ||
| status: true/false - Boolean | ||
| status: true/false - Boolean | ||
| message: Description of validation - String | ||
@@ -20,2 +20,7 @@ | ||
| ## License | ||
| [MIT](https://choosealicense.com/licenses/mit/) | ||
| ## CHANGELOG | ||
| 1.0.4 : Fixed - Closing styles |
+1
-0
@@ -72,2 +72,3 @@ 'use strict' | ||
| tags[tagno] = tags[tagno].replace(/(?<=<\s*[\w_-]+)(\s+[\w_-]+(\s*=\s*(".*?"|'.*?'|[^\s="'<>`]+))?)*/g, '') // Borra todas las propiedades correctas de las etiquetas | ||
| tags[tagno] = tags[tagno].replace(';',''); // Borra posibles ; de cierres de estilos en lĂnea | ||
| let tagSearch = tags[tagno].match(/<(\s*[\w\-_]+)/) | ||
@@ -74,0 +75,0 @@ if ((tagSearch === null) || (tags[tagno] !== '<' + tagSearch[1] + '>')) { |
4408
3.5%108
0.93%25
25%