Skip to content

Commit

Permalink
Update checkName.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Jun 28, 2024
1 parent a2ed25c commit e230116
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/lib/util/checkName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e230116

Please sign in to comment.