From 1dd10fbd2f454ee7c16f2e80cfd7fc73ed2ace12 Mon Sep 17 00:00:00 2001 From: jason5ng32 Date: Mon, 5 Oct 2026 14:41:22 +0800 Subject: [PATCH] Chore: point the asn-input / mac-input comments at the moved bridges The layout refactor moved the two re-export bridges into utils/ip/ and utils/features/; their header and test comments still named the old paths. Co-Authored-By: Claude Opus 5.5 --- common/asn-input.js | 4 ++-- common/mac-input.js | 8 ++++---- tests/asn-input.test.js | 2 +- tests/mac-input.test.js | 3 ++- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/common/asn-input.js b/common/asn-input.js index e1c6b7b3..13824993 100644 --- a/common/asn-input.js +++ b/common/asn-input.js @@ -1,7 +1,7 @@ // The AS-number grammar shared by the ASN guards (server/guards.js) and the // tools that take a typed AS number (Whois, ASN Profile — via the -// frontend/utils/asn-input.js bridge): up to ten digits, AS1 … AS4294967295, -// `AS` prefix case-insensitive. +// frontend/utils/ip/asn-input.js bridge): up to ten digits, AS1 … +// AS4294967295, `AS` prefix case-insensitive. export const MAX_ASN = 4294967295; diff --git a/common/mac-input.js b/common/mac-input.js index 202bc211..e727d6e8 100644 --- a/common/mac-input.js +++ b/common/mac-input.js @@ -1,8 +1,8 @@ // MAC Lookup query parsing, shared by the /api/macchecker handler and the -// MacChecker form (via frontend/utils/mac-input.js). A query is a full -// 48-bit address or any leading part of one, down to a 24-bit vendor prefix, -// in the usual notations: colon / hyphen pairs, Cisco dotted quads, or bare -// hex. +// MacChecker form (via frontend/utils/features/mac-input.js). A query is a +// full 48-bit address or any leading part of one, down to a 24-bit vendor +// prefix, in the usual notations: colon / hyphen pairs, Cisco dotted quads, +// or bare hex. export const MAC_HEX_LENGTH = 12; export const MAC_PREFIX_MIN_HEX = 6; diff --git a/tests/asn-input.test.js b/tests/asn-input.test.js index 36a16064..699deaa1 100644 --- a/tests/asn-input.test.js +++ b/tests/asn-input.test.js @@ -1,6 +1,6 @@ // Tests for common/asn-input.js — the AS-number grammar shared by the ASN // guards, the Whois tool (prefix required) and ASN Profile (prefix -// optional) — and its frontend/utils/asn-input.js re-export. +// optional) — and its frontend/utils/ip/asn-input.js re-export. import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; diff --git a/tests/mac-input.test.js b/tests/mac-input.test.js index 6d2d76bf..016b7da7 100644 --- a/tests/mac-input.test.js +++ b/tests/mac-input.test.js @@ -1,5 +1,6 @@ // Tests for common/mac-input.js — the MAC Lookup query parser shared by -// /api/macchecker and the MacChecker form (through frontend/utils/mac-input.js). +// /api/macchecker and the MacChecker form (through +// frontend/utils/features/mac-input.js). import assert from 'node:assert/strict'; import { describe, it } from 'node:test';