thehanimo / pr-title-checker

An action to automatically check if pull request titles conform to Contribution Guidelines
MIT License
109 stars 36 forks source link

How I can exclude special characters #13

Closed sonomirco closed 2 years ago

sonomirco commented 2 years ago

Hi, I would like to check that the title doesn't have any special character, but if I pass the regexp of this type the action files [<>'"/;%]`

thehanimo commented 2 years ago

Hey @sonomirco! I'm assuming that you're trying to prevent any of <, >, ', ", /, ;, `, or %, anywhere in the title. This should be the regexp you're looking for:

"regexp": "^[^<>\\'\\\"/;\\`%]*$"
sonomirco commented 2 years ago

Thanks I'll try it :)

sonomirco commented 2 years ago

All good thanks.