Fixed stupid mistake in regex check.