21 lines
876 B
PowerShell
21 lines
876 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 }
|
|
if ($c -match '"(?:url|item|@id|logo)":\s*"https://odoo-expertos\.com') {
|
|
$matched += $file.FullName
|
|
}
|
|
}
|
|
Write-Host "Matched count: $($matched.Count)"
|
|
$matched | Select-Object -First 3 | ForEach-Object { Write-Host $_ }
|
|
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[^"]*"')
|
|
Write-Host "---SAMPLE MATCH---"
|
|
Write-Host $m.Value
|
|
}
|