Fix use of regexp argument instead of a plain string