Comparing version 3.1.1 to 3.1.2
@@ -51,3 +51,3 @@ var cssStyles = require('./cssStyles'); | ||
} | ||
var result = ['%c' + content]; | ||
var result = ['%c' + content.replace(/%/g, '%%')]; | ||
var styleProperties = []; | ||
@@ -54,0 +54,0 @@ |
@@ -205,3 +205,3 @@ /*! | ||
} | ||
var result = ['%c' + content]; | ||
var result = ['%c' + content.replace(/%/g, '%%')]; | ||
var styleProperties = []; | ||
@@ -208,0 +208,0 @@ |
{ | ||
"name": "magicpen", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "Styled output in both consoles and browsers", | ||
@@ -5,0 +5,0 @@ "main": "./lib/MagicPen.js", |
@@ -971,3 +971,9 @@ /*global describe, it, beforeEach*/ | ||
}); | ||
it('should escape literal percent signs', function () { | ||
expect(magicpen().text('%').toString('coloredConsole'), 'to equal', [ | ||
'%c%%', '' | ||
]); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
474606
2906