18:12 | <annevk> | Stumbled across the lack of https://github.com/tc39/proposal-regex-escaping today. Doing any kind of case-insensitive substring search without it seems hard? But reading through it, it also doesn't seem as straightforward as one would hope. |
18:55 | <bakkot> | annevk: yeah we had a conversation about it a meeting or two ago - I think just escaping literally every ASCII punctuator, and possibly also whitespace (against a future x mode), would be sufficient to address everyone's concerns; we might do that |
18:55 | <bakkot> | cc ljharb ^ who was going to pick it up |
18:55 | <bakkot> | the alternative is, make a regexp builder template tag, that does context-sensitive escaping for interpolation. which is what template tags are for, but is not really the thing people want here. |