Closed kaoDev closed 6 years ago
On windows I just had the error that a path looking like this:
someFolder\%someParam\index
got transformed to this
someFolder/%someParam\index
so only the first backslash got replaced by a normal slash.
The fix is to add a g flag to the replacement regex so that all backslashes match
g
Coverage remained the same at 100.0% when pulling 77e0ab0f8c95ce849a8bd35f78471a40ede9ca07 on kaoDev:fix/backslah-replace into ecc3bddf8ec89c717be95f0aa2c809d2ecaea38b on jesseditson:master.
Nice catch!
Released here: https://github.com/jesseditson/fs-router/releases/tag/v0.4.1
On windows I just had the error that a path looking like this:
someFolder\%someParam\index
got transformed to this
someFolder/%someParam\index
so only the first backslash got replaced by a normal slash.
The fix is to add a
g
flag to the replacement regex so that all backslashes match