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.
tiler.getGeoJSON