yeah i agree, we need tests and if @sebastianbergmann acknowledges this is unintended then we can fix, PRs welcome to improve that regexp