rstudio/rstudio — comment on commit 76f695962aaf47ac1571daf8d0d5cc1df85e2d4a
File:  line 0
By jcheng5:

Shouldn't we use platform-specific line terminators?

I think it would be totally fine to search for the regex without trailing \n if that makes things easier. It would be very strange to have that regex occur in the context of a larger regex considering that it starts with ^ and ends with $.