Steven Levithan

Results 124 comments of Steven Levithan

The library https://github.com/sindresorhus/string-width offers an alternative approach that might be helpful with this.

Hi! XRegExp v5 has a breaking change described at https://github.com/slevithan/xregexp#named-capture-breaking-change-in-xregexp-5 Specifically, named backreference properties now appear on the result's groups object (following ES2018), rather than directly on the result. To...

Hi! XRegExp v5 has a breaking change described at https://github.com/slevithan/xregexp#named-capture-breaking-change-in-xregexp-5 Specifically, named backreference properties now appear on the result's groups object (following ES2018), rather than directly on the result. To...

> What are the corresponding JS regex patterns Here's the syntax for these features in the regex flavors that support then (PCRE, Perl, etc., as well as the `regex` library...

`regex` is also concerned about bundle size, so it’s reasonably small. But no worries at all if that nevertheless makes it not the right fit, or means that it would...

`textmate-grammars-themes` (and by extension Shiki) gets the lean grammar from upstream here: https://github.com/leanprover/vscode-lean4/blob/master/vscode-lean4/syntaxes/lean4.json I don't know if GitHub is using the same grammar file. Does this work correctly if using...

Shipping in all major browsers since August 2024: [compat table](https://caniuse.com/mdn-javascript_regular_expressions_named_capturing_group_duplicate_named_capturing_groups).

> I've been keeping an eye on oniguruma-to-es for a while now > is a very cool project indeed Thanks, glad to hear it. 😊 > I could add a...

### Reporting error positions > [...] and extend the error reporting > do the error messages give the position of the error? No. That would be nice and I'd welcome...

Aside: It's obvious you have extremely in-depth and hard-won knowledge of Oniguruma's nuances and complexity. Even if you don't end up using `oniguruma-to-es` in this library, if you're ever interested...