Bug 1053834 - Wrong regular expressions in build/shared-utils.js and build/webapp-shared.js r=gduan