mozilla/zamboni — comment on commit d7ed67cb09ae5a939adefc5c3475e879383cc9c8
File: media/js/devreg/devhub.js line 55
By robhudson:

Aren't you creating a copy of the regular expression on each key press? Is that expensive? Why not pull that out and into a var? `var regexp = /^(.+):\/\/(.+)/;` and then `$this.val().match(regexp)`?