You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: