From: Ruben Beltran del Rio Date: Mon, 21 Sep 2020 12:58:14 +0000 (+0200) Subject: Constrain matching regex to only match 255 chars X-Git-Tag: v2.0.1^2~2 X-Git-Url: https://git.r.bdr.sh/rbdr/cologne/commitdiff_plain/7f09137eef061ba4eddb855bc6aeae3f8e9f8015 Constrain matching regex to only match 255 chars --- 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