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 <noreply@anthropic.com>
This commit is contained in:
jason5ng32andClaude Opus 5.5 committed 2026-10-05 14:41:22 +08:00
1 parent 76833b91f3
commit 1dd10fbd2f
4 files changed
+9 -8

No files matched your search

+2 -2
View File
@@ -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;
+4 -4
View File
@@ -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;
+1 -1
View File
@@ -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';
+2 -1
View File
@@ -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';