toMatch should make a new regexp of '/spec/unit/data/foo/bar.js', not protractor. But yes, I see your point - the `\s` would be interpreted as a special character.

In that case, let's minimize replace to just take care of `\\`. Regexp are difficult to read and I'd prefer to minimize them.