@mathias adding support for Unicode Properties to regexp-tree. Is shorthand allowed only for the General_Category? \p{Letter} for \p{General_Category=Letter}, but not for other property names?
Indeed. Note that e.g. \p{White_Space} (i.e. something that might look like the same syntax) is not a shorthand though — it’s a binary property instead of a General_Category property.
-
-
Maybe the regexpu implementation is a useful reference: https://github.com/mathiasbynens/regexpu-core/blob/a20f9142d87013822441f417bd8c5b14999f2353/rewrite-pattern.js#L64-L76 …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Perfect, thanks, I'll take a look!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.