Skip to content

Commit 8876698

Browse files
committed
unbxdSearch.js(fix): exclude upper bound in range facets
1 parent 080e50f commit 8876698

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

unbxdSearch.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,9 +1063,9 @@ var unbxdSearchInit = function(jQuery, Handlebars){
10631063
&& this.defaultParams.ranges.hasOwnProperty(x)
10641064
&& this.defaultParams.ranges[x].hasOwnProperty(y)
10651065
&& this.params.ranges[x].hasOwnProperty(y)){
1066-
b.push(x + ':[' + this.params.ranges[x][y].lb + " TO " + this.params.ranges[x][y].ub + ']');
1066+
b.push(x + ':[' + this.params.ranges[x][y].lb + " TO " + this.params.ranges[x][y].ub + '}');
10671067
}else if(this.params.ranges[x].hasOwnProperty(y)){
1068-
a.push(x + ':[' + this.params.ranges[x][y].lb + " TO " + this.params.ranges[x][y].ub + ']');
1068+
a.push(x + ':[' + this.params.ranges[x][y].lb + " TO " + this.params.ranges[x][y].ub + '}');
10691069
}
10701070
}
10711071

@@ -1265,7 +1265,7 @@ var unbxdSearchInit = function(jQuery, Handlebars){
12651265
for(var x = 0; x < filterStrArr.length; x++){
12661266
var arr = filterStrArr[x].split(":");
12671267
if(arr.length == 2){
1268-
arr[1] = arr[1].replace(/(^")|("$)/g, '').replace(/\"{2,}/g, '"').replace(/\\\"/g, '"').replace(/(^\[)|(\]$)/g, '');
1268+
arr[1] = arr[1].replace(/(^")|("$)/g, '').replace(/\"{2,}/g, '"').replace(/\\\"/g, '"').replace(/(^\[)|(\]$)|(\}$)/g, '');
12691269

12701270
var vals = arr[1].split(" TO ");
12711271
if(vals.length > 1){

0 commit comments

Comments
 (0)