style: lint
release / check-version (push) Canceled after 0s
release / build-linux (arm64, linux) (push) Canceled after 0s
release / build-linux (x64, linux) (push) Canceled after 0s
release / build-win32 (x64, win32) (push) Canceled after 0s
release / release-napcat (push) Canceled after 0s

This commit is contained in:
手瓜一十雪 committed 2024-06-02 20:49:09 +08:00
1 parent 94f629585a
commit 0ff6edd546
24 files changed
+1678 -1676

No files matched your search

+1
View File
@@ -21,6 +21,7 @@ const invalidMacAddresses = new Set([
]);
function validateMacAddress(candidate: string): boolean {
// eslint-disable-next-line no-useless-escape
const tempCandidate = candidate.replace(/\-/g, ':').toLowerCase();
return !invalidMacAddresses.has(tempCandidate);
}