Added a regex to catch unescaped backslashes