Patched provider.js with regex successfully.