-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
On commit, I get
grep: warning: stray \ before -
that's caused by the following pattern
% git config --get-all secrets.patterns|grep ACCOUNT
("|')?(AWS|aws|Aws)?_?(ACCOUNT|account|Account)_?(ID|id|Id)?("|')?\s*(:|=>|=)\s*("|')?[0-9]{4}\-?[0-9]{4}\-?[0-9]{4}("|')?
%
as demonstrated by
% grep -E "(\"|')?(AWS|aws|Aws)?_?(ACCOUNT|account|Account)_?(ID|id|Id)?(\"|')?\\s*(:|=>|=)\\s*(\"|')?[0-9]{4}\\-?[0-9]{4}\\-?[0-9]{4}(\"|')?"
grep: warning: stray \ before -
grep: warning: stray \ before -
This is on up-to-date Arch Linux and git-secrets 1.3.0 (the latest tag, from 3.5 years ago, which contains the latest master version of the git-secrets script).
rdewaele, jeje232, mtanda, ronanbarrett and SolarNyx
Metadata
Metadata
Assignees
Labels
No labels