taoqf / node-html-parser

A very fast HTML parser, generating a simplified DOM, with basic element query support.
MIT License
1.12k stars 112 forks source link

why use \6 @ matcher.ts line:183? #84

Closed tswordyao closed 4 years ago

tswordyao commented 4 years ago

thanks for your lib, very much~

i dont understand the use "\6" ........

Can you give a use case? or it can be instead by other char?

taoqf commented 4 years ago

I am so sorry that I can not help you out with such clue. Could you please describe this more clearly?

tswordyao commented 4 years ago

https://github.com/taoqf/node-html-parser/blob/master/src/matcher.ts#L183

reg = /^\[\s*(\S+)\s*(=|!=)\s*((((["'])([^\6]*)\6))|(\S*?))\]\s*/.exec(tagName);

what's the \6 means? why is it here?

taoqf commented 4 years ago

Aha, there must be something wrong.