Comparing version 1.1.0 to 1.1.1
@@ -5,3 +5,3 @@ /* eslint-env browser */ | ||
var FUNCTION_CONSISTING_ENTIRELY_SINGLE_MULTILINE_COMMENT = /^function\s*\w*\(\)\s*\{\s*\/\*\s*([^]+?)\s*\*\/\s*\s*}$/; | ||
var FIRST_MULTILINE_COMMENT = /\/\*\s*([^]+?)\s*\*\//; | ||
@@ -36,3 +36,3 @@ var ENCODERS = /%\{(\d+)\}/g; // double $$ to encode | ||
if (typeof template === 'function') { | ||
var format = template.toString().match(FUNCTION_CONSISTING_ENTIRELY_SINGLE_MULTILINE_COMMENT); | ||
var format = template.toString().match(FIRST_MULTILINE_COMMENT); | ||
template = format | ||
@@ -39,0 +39,0 @@ ? format[1] // template function: extract text from comment |
{ | ||
"name": "automat", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "String and markup formatter.", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
8779