fixed regex syntax to match javascript flavor

Sigh.  Sorry for sending my pull request earlier without thoroughly testing.  The regex I sent worked in my regex tester, but I hadn't made sure it worked within the plugin.

Should work now.