This is why I'm saying it was probably a regular expression parser. In many regular expression engines, `.` does not match newlines by default.
So, a naive regular expression parser would have failed in this exact way.
And it sounds like something DoCoMo would do.
