Open japboy opened 4 years ago
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},
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.
It woulb be great if case insensitive redirect pattern is supported :D