Skip to content

Commit

Permalink
Differentiate policy id vs implementation (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
crutchfield authored and schrolla committed Jul 7, 2023
1 parent a04eb7b commit 2ade0e4
Show file tree
Hide file tree
Showing 4 changed files with 2,841 additions and 2,323 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function Import-SecureBaseline{
$Group.GroupName = $GroupName.Split(".")[1].Trim() # 1 to remove the leading space
$Group.Controls = @()

$IdRegex = "#### MS\.[$($Product.ToUpper())]+\.$($Group.GroupNumber)\."
$IdRegex = "#### MS\.[$($Product.ToUpper())]+\.$($Group.GroupNumber)\.\d+v\d+\s*$"
# Select-String line numbers aren't 0-indexed, hence the "-1" on the next line
$LineNumbers = Select-String $IdRegex "$($BaselinePath)$($Product).md" | ForEach-Object {$_."LineNumber"-1}

Expand Down
Loading

0 comments on commit 2ade0e4

Please sign in to comment.