Escape - character in regex character groups (#802)

* fix char escape

* add test

* fix verbosity in make test
This commit is contained in:
Isaac Dawson authored and GitHub committed 2022-03-07 08:33:06 -06:00
1 parent 19555579c8
commit 9326f35380
5 files changed
+34 -13

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
title = "gitleaks config"
# https://learnxinyminutes.com/docs/toml/ for toml reference
[[rules]]
id = "pypi-upload-token"
description = "PyPI upload token"
regex = '''pypi-AgEIcHlwaS5vcmc[A-Za-z0-9\-_]{50,1000}'''
tags = ["key", "pypi"]
Binary file not shown.