Fix test case regex to work with all type of EOL characters #5

Merged
PhilippRaab merged 1 commit from test-case-regex-fix into master 2020-09-17 12:26:35 +02:00
PhilippRaab commented 2020-09-17 12:23:28 +02:00 (Migrated from github.com)

When trying to run the tests for the lezer/json library I stumbled upon this issue on a Windows pc. The EOL charactes where apparently replaced with \r\n and the regex failed.

This PR changes the regex to match \n, \r and \r\n.

When trying to run the tests for the lezer/json library I stumbled upon this issue on a Windows pc. The EOL charactes where apparently replaced with `\r\n` and the regex failed. This PR changes the regex to match `\n`, `\r` and `\r\n`.
marijnh commented 2020-09-17 12:26:48 +02:00 (Migrated from github.com)

Makes sense. Merged.

Makes sense. Merged.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lezer/generator!5
No description provided.