atom / line-ending-selector

Switch between Unix and Window style line endings.
MIT License
33 stars 18 forks source link

Prevent LFRegExp from matching on "\r\n" #56

Closed smashwilson closed 6 years ago

smashwilson commented 6 years ago

Now that superstring is using "any" line ending mode, the ^ in LFRegExp was matching between "\r\n" sequences, causing all CRLF files to be detected as "Mixed". Use \A to anchor specifically to the beginning of the buffer instead.