⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
html-loader
/
lib
/
View File Name :
attributesParser.js
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ var Parser = require("fastparse"); var processMatch = function(match, strUntilValue, name, value, index) { if(!this.isRelevantTagAttr(this.currentTag, name)) return; this.results.push({ start: index + strUntilValue.length, length: value.length, value: value }); }; var parser = new Parser({ outside: { "<!--.*?-->": true, "<![CDATA[.*?]]>": true, "<[!\\?].*?>": true, "<\/[^>]+>": true, "<([a-zA-Z\\-:]+)\\s*": function(match, tagName) { this.currentTag = tagName; return "inside"; } }, inside: { "\\s+": true, // eat up whitespace ">": "outside", // end of attributes "(([0-9a-zA-Z\\-:]+)\\s*=\\s*\")([^\"]*)\"": processMatch, "(([0-9a-zA-Z\\-:]+)\\s*=\\s*\')([^\']*)\'": processMatch, "(([0-9a-zA-Z\\-:]+)\\s*=\\s*)([^\\s>]+)": processMatch } }); module.exports = function parse(html, isRelevantTagAttr) { return parser.parse("outside", html, { currentTag: null, results: [], isRelevantTagAttr: isRelevantTagAttr }).results; };