diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2020-09-21 14:58:14 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2020-09-21 14:58:14 +0200 |
| commit | 7f09137eef061ba4eddb855bc6aeae3f8e9f8015 (patch) | |
| tree | 7897500c191aae9dca7112abd575c6b62685b1fb | |
| parent | d959613ccea3fa9ea6c64a4b4f59c5277f6e8f4f (diff) | |
Constrain matching regex to only match 255 chars
| -rw-r--r-- | lib/formatters/token.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/formatters/token.js b/lib/formatters/token.js index 2ec3a17..05895fa 100644 --- a/lib/formatters/token.js +++ b/lib/formatters/token.js @@ -34,9 +34,9 @@ module.exports = class TokenFormatter { * @instance * @memberof Formatters.Token * @type RegExp - * @default /{{(.*)}}/g + * @default /{{(.{1,255}?)}}/g */ - this.replaceRule = /{{(.*?)}}/g; + this.replaceRule = /{{(.{1,255}?)}}/g; /** * Flag that specifies whether or not to use an isoDate when using |