@putout/compare
Advanced tools
Comparing version 14.3.1 to 14.4.0
@@ -40,2 +40,4 @@ 'use strict'; | ||
const BODY_AND_CLASS_REG = /\.body\.0(\.key)?$/; | ||
module.exports.getTemplateValues = (node, str) => { | ||
@@ -113,3 +115,3 @@ if (!isString(str)) | ||
if (isBodyStr(name)) | ||
way = way.replace(/\.body\.0$/, ''); | ||
way = way.replace(BODY_AND_CLASS_REG, ''); | ||
@@ -155,3 +157,3 @@ result[name] = result[name] || extractExpression(jessy(way, node)); | ||
if (isBodyStr(name)) | ||
way = way.replace(/\.body\.0$/, ''); | ||
way = way.replace(BODY_AND_CLASS_REG, ''); | ||
@@ -158,0 +160,0 @@ const {extra} = jessy(way, node); |
{ | ||
"name": "@putout/compare", | ||
"version": "14.3.1", | ||
"version": "14.4.0", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", |
@@ -190,2 +190,6 @@ # @putout/compare [![NPM version][NPMIMGURL]][NPMURL] | ||
true; | ||
compare(`class a {hello: 'world'}`, 'class __a {__body}'); | ||
// returns | ||
true; | ||
``` | ||
@@ -192,0 +196,0 @@ |
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
29174
724
267