Speed up by avoiding repeated regex construction etc
authorGreg Hurrell <greg@hurrell.net>
Wed, 31 May 2017 06:59:07 +0000 (23:59 -0700)
committerGreg Hurrell <greg@hurrell.net>
Wed, 31 May 2017 06:59:07 +0000 (23:59 -0700)
commita86e20e93f0d55049b964f92da2cecb8750f1472
treede57cb4de5e0dad315e689d5d3bfcaebfdca86c1
parent76c377d360d1af8ae3bd92b068a3b825b246cdfe
Speed up by avoiding repeated regex construction etc

Avoid repeated regexp allocation, `slice`, `trim` and `toLowerCase`
calls.
src/Field.react.js