File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ const decode = function(input) {
236236 }
237237
238238 const digit = basicToDigit ( input . charCodeAt ( index ++ ) ) ;
239-
239+
240240 if ( digit >= base ) {
241241 error ( 'invalid-input' ) ;
242242 }
Original file line number Diff line number Diff line change @@ -212,6 +212,10 @@ const testData = {
212212 'description' : 'Email address' ,
213213 'decoded' : '\u0434\u0436\u0443\u043C\u043B\u0430@\u0434\u0436p\u0443\u043C\u043B\u0430\u0442\u0435\u0441\u0442.b\u0440\u0444a' ,
214214 'encoded' :
'\u0434\u0436\u0443\u043C\u043B\[email protected] ' 215+ } ,
216+ { // https://github.com/mathiasbynens/punycode.js/pull/115
217+ 'decoded' : 'foo\x7F.example' ,
218+ 'encoded' : 'foo\x7F.example'
215219 }
216220 ] ,
217221 'separators' : [
You can’t perform that action at this time.
0 commit comments