Skip to content

Commit

Permalink
Make detection of HCONS constraints more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
ned2 committed Aug 15, 2018
1 parent 3810e49 commit 1d48c20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viz/mrs.js
Expand Up @@ -67,11 +67,11 @@ function MRS(parentElement, mrsData){
var itemFunc = relFeatStruct;
} else if (name == 'HCONS') {
// filter out ICONS values from the constraints list
var value = value.filter(constraint => constraint.high != null);
var value = value.filter(constraint => constraint.high != null && constraint.high.match(/h(andle)?\d+/));
var itemFunc = hconsFeatStruct;
} else if (name == 'ICONS') {
// filter out HCONS values from the constraints list
var value = value.filter(constraint => constraint.high == null);
var value = value.filter(constraint => constraint.high == null || !constraint.high.match(/h(andle)?\d+/));
var itemFunc = iconsFeatStruct;
}

Expand Down

0 comments on commit 1d48c20

Please sign in to comment.