You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not really a bug report, but rather a script that is useful when generating test cases:
regenerate.prototype.toCode=function(){vardata=this.data;// Iterate over the data per `(start, end)` pair.varindex=0;varstart;varend;varlength=data.length;varloneCodePoints=[];varranges=[];while(index<length){start=data[index];end=data[index+1]-1;// Note: the `- 1` makes `end` inclusive.if(start==end){loneCodePoints.push('0x'+start.toString(16).toUpperCase());}else{ranges.push('addRange(0x'+start.toString(16).toUpperCase()+', 0x'+end.toString(16).toUpperCase()+')');}index+=2;}return'regenerate('+loneCodePoints.join(', ')+')'+(ranges.length ? '.'+ranges.join('.') : '');};varset=regenerate(0x1D306,'a').addRange(0x2CEE,0x4DFF);console.log(set.toCode());// → 'regenerate(0x61, 0x1D306).addRange(0x2CEE, 0x4DFF)'
Let’s allow extending regenerate.prototype for plugins like this.
The text was updated successfully, but these errors were encountered:
This is not really a bug report, but rather a script that is useful when generating test cases:
Let’s allow extending
regenerate.prototype
for plugins like this.The text was updated successfully, but these errors were encountered: