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

Multiline regex matches get written into output instead of regex match space #3

Open
SoptikHa2 opened this issue Apr 21, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@SoptikHa2
Copy link
Owner

Example of sed debug output:

MATCHED REGEX REGISTERS
  regex[0] = 0-12 ',3;
:1 2:3 4'
  regex[1] = 0-9 ',3;
:1 2:'
  regex[2] = 1-2 '3'

The way it works now is that only the regex[0] line is read. When we parse next line, it looks like output from sed, so it gets written that way. Actually, all next four lines are considered sed output. We need to handle regex that has newline in it. We can probably ditch all the escaping hell with '. Who would ever need it.

@SoptikHa2 SoptikHa2 added the bug Something isn't working label Apr 21, 2020
@SoptikHa2 SoptikHa2 self-assigned this Apr 21, 2020
@SoptikHa2 SoptikHa2 linked a pull request Jul 27, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant