FLUID-5120: Fixed regexp escaping bug

The escaping issue was causing the minified build to fail when trying to execute the regexp.