radix empty end should be infinite

This commit is contained in:
Mark Nadal 2019-04-22 18:14:02 -07:00
parent 4b247628e7
commit 1abcfe0c83

View File

@ -65,7 +65,7 @@
p = pre.slice(); p.push(key);
pt = p.join('');
if(u !== start && pt < (start||'').slice(0,pt.length)){ continue }
if(u !== end && end < pt){ continue }
if(u !== end && (end || '\uffff') < pt){ continue }
if(u !== (tmp = tree[''])){
tmp = cb(tmp, pt, key, pre);
if(u !== tmp){ return tmp }