Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: regexp of multi-line rule #383

Merged
merged 1 commit into from
Jan 14, 2020
Merged

Conversation

WavinFlag
Copy link
Contributor

Regexp of multi-line rule matched preceding and followding line feeds by mistake;
this caused incorrect parsing result if there are any blank lines (and only blank lines) bewteen 2 neighboring multi-line rule.
For example, the following 2 rules:

line`
A1
A2
`

line`
B1
B2
`

will be parsed to "A1 A2B1 B2".

This patch fixes the bug, so that the above rules would be parsed to "A1 A2\nB1 B2" correctly.

Regexp of multi-line rule matched preceding and followding line feeds by mistake;
this caused incorrect parsing result if there are any blank lines (and only blank lines) bewteen 2 neighboring multi-line rule.
For example, the following 2 rules:
```
line`
A1
A2
`

line`
B1
B2
`
```
will be parsed to "A1 A2B1 B2".

This patch fixes the bug, so that the above rules would be parsed to "A1 A2\nB1 B2" correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants