20 lines
850 B
PowerShell
20 lines
850 B
PowerShell
$repo = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
|
|
$excludePattern = '\\(\.git|node_modules|seo-audit-2026-05-27|website|directory)\\'
|
|
$files = Get-ChildItem $repo -Recurse -Filter index.html -File -ErrorAction SilentlyContinue |
|
|
Where-Object { $_.FullName -notmatch $excludePattern }
|
|
$matched = @()
|
|
foreach ($file in $files) {
|
|
$c = [System.IO.File]::ReadAllText($file.FullName)
|
|
if (-not $c) { continue }
|
|
# CASE-SENSITIVE - same as REVIEW.ps1
|
|
if ([regex]::IsMatch($c, '"(?:url|item|@id|logo)":\s*"https://odoo-expertos\.com')) {
|
|
$matched += $file.FullName
|
|
}
|
|
}
|
|
Write-Host "Case-sensitive matched: $($matched.Count)"
|
|
if ($matched.Count -gt 0) {
|
|
$c = [System.IO.File]::ReadAllText($matched[0])
|
|
$m = [regex]::Match($c, '"(?:url|item|@id|logo)":\s*"https://odoo-expertos\.com[^"\r\n]*')
|
|
Write-Host "Sample: $($m.Value)"
|
|
}
|