mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-01 01:30:20 +02: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.