← back to Commercialrealestate
CRCP scope Cycle 7: anchor isCalifornia crexi-CA regex to the leading /properties/ID/california- slug token (was /california-, could theoretically false-match a street named 'California' in another state); verified loss-free (keeps all 5147 CA rows) + WebKit 9/9
e258eee950247bc174d1fc1da934e0b8f37d49e0 · 2026-08-20 18:12:14 -0700 · Steve
Files touched
Diff
commit e258eee950247bc174d1fc1da934e0b8f37d49e0
Author: Steve <steve@designerwallcoverings.com>
Date: Thu Aug 20 18:12:14 2026 -0700
CRCP scope Cycle 7: anchor isCalifornia crexi-CA regex to the leading /properties/ID/california- slug token (was /california-, could theoretically false-match a street named 'California' in another state); verified loss-free (keeps all 5147 CA rows) + WebKit 9/9
---
public/crcp-scope.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/crcp-scope.js b/public/crcp-scope.js
index d50adf3..596a265 100644
--- a/public/crcp-scope.js
+++ b/public/crcp-scope.js
@@ -52,7 +52,7 @@
function isCalifornia(item) {
if (!item) return false;
var src = String(item.source == null ? "" : item.source);
- if (/\/california-/i.test(src)) return true; // crexi CA slug
+ if (/\/properties\/\d+\/california-/i.test(src)) return true; // crexi CA slug (anchored to the state token, not a street named 'California')
if (/crexi\.com\/properties\/\d+\/[a-z]{2,}-/i.test(src)) return false; // crexi non-CA slug -> not CA
var z = parseInt(String(item.zip == null ? "" : item.zip).slice(0, 5), 10);
if (z >= 90000 && z <= 96199) return true; // CA zip
← 02e8a05 CRCP scope Cycle 6: California guard on scoped grids — Crexi
·
back to Commercialrealestate
·
auto-data-snapshot: 2026-08-20T18:24:03 (3 data files) — dat 721586b →