facebook/relay

Docblock parser doesn't handle CRLF

Opened this issue · 0 comments

Windows newlines (CRLF) doesn't work in dockblocks

Source code with the Windows CRLF line endings breaks the Dockblock parser as it doesn't handle CRLF and expects UNIX style \n newlines. This causes the \r character to be part of the identifier which triggers errors like unknown identifier or it detects '\r' as an argument.