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

Newline markers in the regular expressions or how to match N repeated instances of lines matching the same regex? #54

Open
ErtHub opened this issue Jan 8, 2024 · 0 comments

Comments

@ErtHub
Copy link

ErtHub commented Jan 8, 2024

Hello 🙂

Header comments in my project files always contain a few words of description of what the file is and what it does. Now, depending on whether it is a huge file or not, the description may be single- or multiline. I have tried to construct a config that would match my comment in both cases, so I came up with a regex containing a newline and a multiplier symbol, such as: .+(\n.+)*. Unfortunately, the header plugin does not match any comments if the regex contains \n.

How can I make the plugin match newlines or otherwise prepare a proper config for a case when the number of lines of description is not known beforehand?

Kind regards,
Hubert

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

No branches or pull requests

1 participant