PageSourceSearch

https://www.sheconomy.in/assets/postal-HqcpNnIK.js

js sheconomy.in collected 2026-09-24 13:14:55 UTC 851 bytes, 1 lines download raw bytes

1import{S as e}from"./phone-lJ-RIB1n.js";var t={IN:/^[1-9]\d{5}$/,US:/^\d{5}(-\d{4})?$/,CA:/^[A-Za-z]\d[A-Za-z][ -]?\d[A-Za-z]\d$/,GB:/^[A-Za-z]{1,2}\d[A-Za-z\d]?\s?\d[A-Za-z]{2}$/,AU:/^\d{4}$/,DE:/^\d{5}$/,FR:/^\d{5}$/,SG:/^\d{6}$/,AE:/^\d{5}$/};function n(e){return e.trim().replace(/\s+/g,` `)}function r(t){let n=e(t);return n===`IN`?`PIN code`:n===`US`?`ZIP code`:n===`GB`?`Postcode`:`Postal code`}function i(t){let n=e(t);return n===`IN`?`6-digit PIN`:n===`US`?`12345 or 12345-6789`:n===`GB`?`SW1A 1AA`:n===`CA`?`A1A 1A1`:`Postal code`}function a(i,a){let o=n(a).replace(/\s/g,``);if(!o)return`Enter a valid postal code.`;let s=e(i),c=t[s];return c?c.test(o)?null:`Enter a valid ${r(s).toLowerCase()}.`:o.length<3||o.length>12?`Enter a valid postal code.`:/^[A-Za-z0-9 -]+$/.test(o)?null:`Enter a valid postal code.`}export{i as n,a as r,r as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.