Comparing version 2.1.0 to 2.1.1
@@ -14,3 +14,3 @@ 'use strict'; | ||
// The regex tries to match either a number inside `{{ }}` or a valid JS identifier or key path. | ||
const doubleBraceRegex = /{{(\d+|[a-z$_][a-z\d$_]*?(?:\.[a-z\d$_]*?)*?)}}/g; | ||
const doubleBraceRegex = /{{(\d+|[a-z$_][a-z\d$_]*?(?:\.[a-z\d$_]*?)*?)}}/gi; | ||
@@ -29,3 +29,3 @@ if (doubleBraceRegex.test(template)) { | ||
const braceRegex = /{(\d+|[a-z$_][a-z\d$_]*?(?:\.[a-z\d$_]*?)*?)}/g; | ||
const braceRegex = /{(\d+|[a-z$_][a-z\d$_]*?(?:\.[a-z\d$_]*?)*?)}/gi; | ||
@@ -32,0 +32,0 @@ return template.replace(braceRegex, (_, key) => { |
{ | ||
"name": "pupa", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Simple micro templating", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
4937