When browsing the source code I noticed in the regex used for extracting the front matter that you use [\w\W]:
|
let re = /^(-{3}(?:\n|\r)([\w\W]+?)(?:\n|\r)-{3})?([\w\W]*)*/ |
Why do you do that, wouldn't . be equal? I.e.:
let re = /^(-{3}(?:\n|\r)(.+?)(?:\n|\r)-{3})?(.*)*/
This is a honest question, I just want to understand :-)
When browsing the source code I noticed in the regex used for extracting the front matter that you use
[\w\W]:js-yaml-front-matter/src/index.js
Line 14 in b26f02d
Why do you do that, wouldn't
.be equal? I.e.:This is a honest question, I just want to understand :-)