fix(yandex-valuation): relax area regex lookbehind (2-комн regression) #542

Merged
lekss361 merged 1 commit from fix/tradein-yandex-area-regex-relax into main 2026-05-24 16:02:06 +00:00

1 commit

Author SHA1 Message Date
lekss361
9b07a0f935 fix(yandex-valuation): relax area regex lookbehind (2-комн regression)
PR #541 lookbehind (?<![\d.,]) was too strict — re-sweep showed
area_filled dropped from 48% to 8.8% with all 2-комн rooms losing
area (chunked text often has a price-per-m2 digit immediately before
the room's area token).

Loosen to (?<!\d) (only digit-adjacency blocked, comma/dot fine)
and tighten quantifier to \d{2,4} (min 2 digits blocks sub-fragments
like '2,2' inside '52,2'). Year-concat 20244,6 still rejected because
greedy '\d{2,4}' grabs '2024', then [.,] separator doesn't follow.
2026-05-24 18:50:04 +03:00