Improve patch file detection by adding a header rule. (#1942)

This commit is contained in:
Laszlo Gombos 2021-04-07 16:20:57 -04:00 committed by GitHub
parent 1f73f8587c
commit 9ed3525076
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,8 @@
filetype: patch
detect:
detect:
filename: "\\.(patch|diff)$"
header: "^diff"
rules:
- brightgreen: "^\\+.*"