@putout/compare
Advanced tools
Comparing version 9.8.0 to 9.9.0
@@ -27,2 +27,3 @@ 'use strict'; | ||
isBlock, | ||
isJSXText, | ||
} = require('@babel/types'); | ||
@@ -36,2 +37,3 @@ | ||
const comparators = [ | ||
compareJSXTexts, | ||
compareAny, | ||
@@ -110,1 +112,8 @@ comparePrimitives, | ||
function compareJSXTexts(node, template) { | ||
if (!isJSXText(node) || !isJSXText(template)) | ||
return false; | ||
return /^\s+$/.test(template.value) && /^\s+$/.test(node.value); | ||
} | ||
{ | ||
"name": "@putout/compare", | ||
"version": "9.8.0", | ||
"version": "9.9.0", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", |
23809
573