Comparing version 2.7.6 to 2.7.7
@@ -109,3 +109,4 @@ 'use strict'; | ||
if (key.startsWith(inputKey)) { | ||
var re = new RegExp(inputKey + '\..*', 'g'); | ||
if (key.match(re) || key === inputKey) { | ||
matchFound = true; | ||
@@ -133,3 +134,4 @@ } | ||
} else { | ||
if (key.startsWith(input) === false) { | ||
var re = new RegExp(input + '\..*', 'g'); | ||
if (!key.match(re) && key !== input) { | ||
updatedFlattened[key] = flattened[key]; | ||
@@ -722,3 +724,4 @@ } | ||
if (key.startsWith(inputKey)) { | ||
var re = new RegExp(inputKey + '\..*', 'g'); | ||
if (key.match(re) || key === inputKey) { | ||
matchFound = true; | ||
@@ -746,3 +749,4 @@ } | ||
} else { | ||
if (key.startsWith(input) === true) { | ||
var re = new RegExp(input + '\.', 'g'); | ||
if (key.match(re) || key === input) { | ||
updatedFlattened[key] = flattened[key]; | ||
@@ -749,0 +753,0 @@ } |
{ | ||
"name": "objob", | ||
"version": "2.7.6", | ||
"version": "2.7.7", | ||
"description": "A tool for controlling and manipulating javascript object fields and output.", | ||
@@ -5,0 +5,0 @@ "main": "lib/objob.js", |
@@ -87,3 +87,4 @@ 'use strict'; | ||
for(let inputKey of input) { | ||
if(key.startsWith(inputKey)) { | ||
let re = new RegExp(inputKey+'\..*','g'); | ||
if(key.match(re) || key === inputKey) { | ||
matchFound = true; | ||
@@ -97,3 +98,4 @@ } | ||
} else { | ||
if(key.startsWith(input) === false) { | ||
let re = new RegExp(input+'\..*','g'); | ||
if(!key.match(re) && key !== input) { | ||
updatedFlattened[key] = flattened[key]; | ||
@@ -568,3 +570,4 @@ } | ||
for(let inputKey of input) { | ||
if(key.startsWith(inputKey)) { | ||
let re = new RegExp(inputKey+'\..*','g'); | ||
if(key.match(re) || key === inputKey) { | ||
matchFound = true; | ||
@@ -578,3 +581,4 @@ } | ||
} else { | ||
if(key.startsWith(input) === true) { | ||
let re = new RegExp(input+'\.','g'); | ||
if(key.match(re) || key === input) { | ||
updatedFlattened[key] = flattened[key]; | ||
@@ -581,0 +585,0 @@ } |
661771
3240