PageSourceSearch

https://kuramore.jp/sell/js/components/validate.js

js kuramore.jp collected 2026-10-04 13:25:45 UTC 306 bytes, 12 lines download raw bytes

1/**
2 * 郵便番号入力のバリデーションチェックを行う
3 * @param {string} postCd 郵便番号
4 * @return チェック結果
5 */
6export const validatePostCd = (postCd) => {
7  const regex = /^\d{7}$/;
8  if (postCd.length !== 7 || !regex.test(postCd)) {
9    return false;
10  }
11  return true;
12}

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.