Skip to content

Commit

Permalink
adding pattern to regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Gregory committed May 27, 2020
1 parent 0c7da96 commit e5807a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ var versionedExpressions = map[string]expression{
"^(.*?): (.*?) +\\[id=(.*?)\\]$",
),
reTfPlanLine: regexp.MustCompile(
"^( +)([ ~a-zA-Z0-9%._-]+)=( +)([\"<])(.*?)([>\"]) +-> +(\\()(.*)(\\))(.*)$",
"^( +)([ +~a-zA-Z0-9%._-]+)=( +)([\"<])(.*?)([>\"])( +-> +(\\()(.*)(\\))(.*))?$",
),
reTfPlanCurrentResource: regexp.MustCompile(
"^([~/+-]+) (.*?) +(.*) (.*) (.*)$",
"^([~/+-]+|^\\s+[~/+-]+) (.*?) +(.*) (.*) (.*)$",
),
resourceIndex: 3,
assign: "=",
Expand All @@ -85,7 +85,7 @@ func main() {
var tfmaskChar = getEnv("TFMASK_CHAR", "*")
// Pattern representing sensitive output
var tfmaskValuesRegex = getEnv("TFMASK_VALUES_REGEX",
"(?i)^.*(oauth|secret|token|password|key|result|id).*$")
"(?i)^.*(oauth|secret|token|password|key|result|id|recipient).*$")
// Pattern representing sensitive resource
var tfmaskResourceRegex = getEnv("TFMASK_RESOURCES_REGEX",
"(?i)^(random_id|random_string).*$")
Expand Down

0 comments on commit e5807a0

Please sign in to comment.