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

Feature Request: Multiline Support #6

Open
leesoh opened this issue May 15, 2020 · 0 comments
Open

Feature Request: Multiline Support #6

leesoh opened this issue May 15, 2020 · 0 comments

Comments

@leesoh
Copy link

leesoh commented May 15, 2020

It doesn't look like multiline support is currently enabled for the Grep expression. This would be a helpful feature when matching cookie directives, for example:

Set-Cookie: JSESSIONID=<blah>; Path=/reports-app; Secure; HttpOnly
Cache-Control: private,no-cache,no-store
X-UA-Compatible: IE=edge

Your regex would then look like ^Set-Cookie: JSESSIONID=[a-hA-H0-9]+; Path=\/reports-app; Secure; HttpOnly$. This doesn't currently work.

I made the following change on line 120 of IssueChecker.java locally and it worked as expected:

Matcher matcher = Pattern.compile(issue.grepExpression, Pattern.MULTILINE).matcher(strResponse);

Unfortunately, the "Use selection" feature doesn't recognize newlines, which is where I ran out of Java skills.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant