Skip to content

Commit 89f6211

Browse files
committed
Match new lines first
1 parent 55f6eab commit 89f6211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylsp/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
JEDI_VERSION = jedi.__version__
1515

1616
# Eol chars accepted by the LSP protocol
17-
EOL_CHARS = ['\r\n', '\r', '\n']
17+
EOL_CHARS = ['\n', '\r\n', '\r']
1818
EOL_REGEX = re.compile(f'({"|".join(EOL_CHARS)})')
1919

2020
log = logging.getLogger(__name__)

0 commit comments

Comments
 (0)