The regular expression is breaking because Chrome went to version 10+. It is looking for only 1 digit and Chrome is now 2 digits. To fix this, just change:
Chrome\/(\d.\d)
to
Chrome\/(\d+.\d+)
Safari and Opera will break in the same manner when they’re version numbers go double digits as well.