ENYO-3815: Reset lastIndex of RegExp between tests on different strings.

Enyo-DCO-1.1-Signed-off-by: Aaron Tam <aaron.tam@lge.com>
Merge pull request #664 from enyojs/ENYO-3815-aarontam

ENYO-3815: Reset lastIndex of RegExp between tests on different strings.

Reviewed-By: Ben Combee (ben.combee@lge.com)