Fix bug with numberRegExp not being referenced correctly