googleplus/gplus-photohunt-server-java — pull request #14 by gguuss (2013-08-02 22:42:15+00:00)
Title: Updating regex for short-form client IDs

Client IDs can take many forms, however the first 10 digits are the ones that count but there can . For example:

* 341567271636.apps.googleusercontent.com (standard, web)
* 341567271636 (short form)
* 341567271636-mbqd648jjr2i3ntpe67tthtki5lllpkf.apps.googleusercontent.com (Android)
* 341567271636-hq4u3rqoves3bno4g72bf6igi62sovvl.apps.googleusercontent.com (iOS)

Our existing regular expression will correctly match the patterns except for in the short form. This update adds a simpler regex to match all these cases.