Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for case insensitive pattern #85

Open
japboy opened this issue Jul 8, 2020 · 1 comment
Open

Support for case insensitive pattern #85

japboy opened this issue Jul 8, 2020 · 1 comment

Comments

@japboy
Copy link

japboy commented Jul 8, 2020

It woulb be great if case insensitive redirect pattern is supported :D

@benjamin-richardson-circular
Copy link

benjamin-richardson-circular commented Jan 25, 2023

I just tried to use a regex literal string in order to add a case insensitive flag and it works fine.

{from: /^\/case-insensitive-url/i, to: '/my/redirect', statusCode: 301},

image

This works because in the module it tries to create a regex from the string in the 'from' field. But if you already have a regex, the new RegExp() in the module code will just let it pass through untouched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants