Fix review nit from bug 298004. (syncs branch/trunk)

This commit is contained in:
gavin%gavinsharp.com 2006-02-22 22:54:08 +00:00
parent 8ca161951b
commit c57bc17df6

View File

@ -1279,7 +1279,7 @@ function ctrlNumberTabSelection(event)
// in the range U+xxx6 - U+xxxF. Find the digit 1 corresponding to our
// character.
var digit1 = (event.charCode & 0xFFF0) | 1;
if (!regExp.exec(String.fromCharCode(digit1)))
if (!regExp.test(String.fromCharCode(digit1)))
digit1 += 6;
var index = event.charCode - digit1;