Skip to content

Commit 6259823

Browse files
fixed bug with trailing .
1 parent c23a58d commit 6259823

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/woql.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,10 @@ WOQLQuery.prototype.getLimit = function(){
730730
return this.getPagingProperty("limit");
731731
}
732732

733+
WOQLQuery.prototype.setLimit = function(l){
734+
return this.setPagingProperty("limit", l);
735+
}
736+
733737
WOQLQuery.prototype.isPaged = function(q){
734738
q = (q ? q : this.query);
735739
for (const prop of Object.keys(q)) {
@@ -1055,6 +1059,9 @@ WOQLQuery.prototype.prettyPrint = function(indent, show_context, q, embed){
10551059
}
10561060
}
10571061
}
1062+
if(str.substring(str.length-1) == "."){
1063+
str = str.substring(0, str.length-1);
1064+
}
10581065
return str;
10591066
}
10601067

0 commit comments

Comments
 (0)