Skip to content

Transpilation of .ignoreCase for HTML pattern #66

Open
@tigt

Description

@tigt

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions