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

Transpilation of .ignoreCase for HTML pattern #66

Open
tigt opened this issue Jul 4, 2018 · 0 comments
Open

Transpilation of .ignoreCase for HTML pattern #66

tigt opened this issue Jul 4, 2018 · 0 comments

Comments

@tigt
Copy link

tigt commented Jul 4, 2018

No, really. I’m sure that sounds bizarre but I have a reason.

On my Node server, I'm generating HTML that uses the pattern attribute. Ideally, it would look something like this:

<input pattern="<% /^foo.bar$/i.toSource %>">

However, the pattern attribute is specified to act like it only has the u flag. regexpu helps me with my server-side regexes that use dotAll and such for older browsers, but i can’t be used.

Would it be in-scope to add ignoreCase as an option for regexpu?

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

1 participant