From bb9bb68a0fe23c88e294ac9bf7892defed2724a6 Mon Sep 17 00:00:00 2001 From: Mark Goldsmith Date: Fri, 15 Jun 2018 09:02:16 -0400 Subject: [PATCH] [DEV-2871] DocumentProgramFormatter: changed field match from any to all --- src/document/DocumentProgramFormatter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/document/DocumentProgramFormatter.js b/src/document/DocumentProgramFormatter.js index 5bcc191..56141c7 100644 --- a/src/document/DocumentProgramFormatter.js +++ b/src/document/DocumentProgramFormatter.js @@ -203,7 +203,7 @@ module.exports = Class( 'DocumentProgramFormatter', } const indexes = matches[ field_id ].indexes; - const any_match = matches[ field_id ].any; + const all_match = matches[ field_id ].all; if ( indexes.length > 0 ) { @@ -212,7 +212,7 @@ module.exports = Class( 'DocumentProgramFormatter', } else { - return field_value.map( _ => any_match ); + return field_value.map( _ => all_match ); } }, } );