terkelg/globrex

How to build regex with or (I) ?

fraxken opened this issue · 1 comments

Hi,

A regex like *.json|*.js will produce /^.*\.json\|.*\.js$/ . But i dont want the | to be anti-slashed. Any idea on how i can achieve this ?

Best Regards,
Thomas

You can use glob-regex for this behavior.