new site
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
$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
|
||||
}
|
||||
Reference in New Issue
Block a user