Closed mhaagens closed 6 years ago
That's a normal JavaScript string escaping thing, nothing to do with Shift. By the time Shift sees it, there's no backslash there:
`\.` === '.' // true
Just put another backslash in front of it, or tag your template with String.raw
.
Thank you so much for helping me out, and sorry for opening an unrelated issue!
Any way I can preserve the backslash in the regexp of "test", as seen here? It just returns
test: /.js$/
when I run it through parseModule.