mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-17 11:12:56 +00:00
Just escapes the special regex characters when creating a new RegExp so that numerical keys can be used (e.g. my use case of replacing an arbitrary number of tokens from an array). Otherwise it is interpreted as a repetition.