The current regex we have is not maintainable for sure. Pulling in a vendor library that lets us fill a useful and important role sounds like a good idea. Pre-wiring that vendor library up to the is('mobile') check in the app skeleton seems reasonable as well.