We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@value
@type
@language
1 parent 3ac6b40 commit 6a9e089Copy full SHA for 6a9e089
lib/frame.js
@@ -603,9 +603,9 @@ function _valueMatch(pattern, value) {
603
const v1 = value['@value'];
604
const t1 = value['@type'];
605
const l1 = value['@language'];
606
- const v2 = pattern['@value'] || [];
607
- const t2 = pattern['@type'] || [];
608
- const l2 = pattern['@language'] || [];
+ const v2 = pattern['@value'] ? [].concat(pattern['@value']) : [];
+ const t2 = pattern['@type'] ? [].concat(pattern['@type']) : [];
+ const l2 = pattern['@language'] ? [].concat(pattern['@language']) : [];
609
610
if(v2.length === 0 && t2.length === 0 && l2.length === 0) {
611
return true;
0 commit comments