Regex is compatible with new dojo