Releases: trusktr/regexr
Releases · trusktr/regexr
v2.0.0 - Conversion to TypeScript
Converts the code to TypeScript, and restructures the exports:
Breaking:
- Default export converted to named export. Use
import {r} from 'regexr'
instead ofimport r from 'regexr'
. - Helpers and regexes no longer added to the
r
function, but as exported separately. For example useimport {escape} from 'regexr'; escape(...)
instead ofimport r from 'regexr'; r.escape(...)
, andimport {identifier} from 'regexr/regexes'; identifier
instead ofimport r from 'regexr'; r.identifier
Features
- new
e
alias added forescape
:import {e} from 'regexr'; e(someString)