$ErrorActionPreference = 'Stop' $root = Split-Path -Parent $PSScriptRoot $g01 = Get-Content -LiteralPath (Join-Path $root 'pages/genealogy/g01-my-genealogies.vue') -Raw -Encoding utf8 function Assert-Match { param([string]$Content, [string]$Pattern, [string]$Message) if ($Content -notmatch $Pattern) { throw $Message } } $errorBlock = [regex]::Match($g01, '(?s).*?