Looks like Atom matches newlines as
but behaves inconsistently when replacing just the
with nothing.
So newlines seem to match s+
and
, and only "half" of the line-ending matches
.
- If you replace
with a string, nothing happens to the line-ending, but the string is appended to the next line
- If you replace
with a string, nothing happens at all, but the cursor advances.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…