Closed garyking closed 8 years ago
I'm not sure why it shouldn't apply? Both single quotes and double quotes are string literals in javascript so '\n' is read in as a newline by javascript.
Hm interesting, I guess I picked this up from somewhere else. I guess you're right!
no_unnecessary_double_quotes
shouldn't apply to"\n"
, such as intext.split("\n")
.The above code triggers when
no_unnecessary_double_quotes
is enabled, but it shouldn't. Same goes for"\r"
I imagine.