Closed gregid closed 4 years ago
I took a quick look, a couple things though:
^
)? Is the namespace ignored? If so, this should be documented. But I'm wondering if we should prepend the namespace? If we were using string url matchers, it doesn't matter what the first character is. I think making the behavior match would be beneficial.Oh, and thanks for adding those tests! It makes the PR review much easier!
// changing this:
handler.url.source.replace('^', '^('+ newNamespace +')?\/?')
// to:
handler.url.source.replace(/^/, '^('+ newNamespace +')?\/?')
but will see in test
@jakerella namespace now works with RegExp matcher no matter the starting character.
Looks pretty good! I'll try to get this out in a minor version release soon! Been real busy, and will be for another week+
This addresses the #354