diff --git a/src/lib/util/checkName.ts b/src/lib/util/checkName.ts index 85dec2d25..67836347f 100644 --- a/src/lib/util/checkName.ts +++ b/src/lib/util/checkName.ts @@ -6,11 +6,6 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types export function checkName(displayName: string, name: string, value: any): void { - /*if (!value) { - console.warn(`HAP-NodeJS WARNING: The accessory '${displayName}' is getting published with an empty '${name}'. This is not allowed.`); - return; - }*/ - const validHK = /^[a-zA-Z0-9\s'-.]+$/; // Ensure only letters, numbers, spaces, apostrophes, or dashes const startWith = /^[a-zA-Z0-9]/; // Ensure only letters or numbers are at the beginning of the string const endWith = /[a-zA-Z0-9]$/; // Ensure only letters or numbers are at the end of the string