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 917c7d0 commit a2ed25c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/util/checkName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

// 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) {
/*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
Expand Down

0 comments on commit a2ed25c

Please sign in to comment.