UNPKG

@opencounter/babel-plugin-transform-modern-regexp

Version:
10 lines (7 loc) 236 B
const dateRe = re`/ # A regular expression for date. (?<year>\d{4})- # year part of a date (?<month>\d{2})- # month part of a date (?<day>\d{2}) # day part of a date /x`; const otherRe = re`/(?<name>x)\\1\k<name>/`;