poetry-plugin-export icon indicating copy to clipboard operation
poetry-plugin-export copied to clipboard

Make pre-commit hook regex more precise

Open aureliojargas opened this issue 1 year ago • 1 comments

In regular expressions, the dot . is a metachar that matches every char. To match the literal dot it must be escaped \..

Without the escape, that regex would match unintended filenames, such as poetry-lock, poetry_lock, poetryblock, poetryclock and other variations.

aureliojargas avatar May 17 '24 23:05 aureliojargas

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

sonarqubecloud[bot] avatar May 20 '24 19:05 sonarqubecloud[bot]