Skip to content

Commit

Permalink
fix: handle www while validating hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
ayan-bloomscorp committed May 14, 2024
1 parent d947dc0 commit 4ef2c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/property/property.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function validateProperty(propertyToken: string, hostname: string): Promise<bool
(): void => {},
(): void => {},
(metadata: IPropertyMetadata): void => {
resolve(metadata.name === hostname);
resolve(metadata.name.replace(/^www\./, '') === hostname.replace(/^www\./, ''));
},
(error: string): void => {
reject('unable to validate bloomsight property token!');
Expand Down

0 comments on commit 4ef2c44

Please sign in to comment.