]> git.r.bdr.sh - rbdr/cologne/blobdiff - lib/formatters/token.js
Constrain matching regex to only match 255 chars
[rbdr/cologne] / lib / formatters / token.js
index 2ec3a17af60f75a2c35fba944d1b709a415cb5d6..05895fa400b77db0e8e53b56e39cba8f630f4065 100644 (file)
@@ -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