Removed the global flag from the regular expression.