Skip to content

Commit

Permalink
chore: update regex
Browse files Browse the repository at this point in the history
  • Loading branch information
fdewas-aneo committed Dec 23, 2024
1 parent 46a22cc commit 458dd6f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/interceptors/grpc.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export type GrpcClientSettings = GrpcClient<unknown> & {
*/
export class GrpcHostInterceptor implements GrpcInterceptor {
host: string | null = null;
readonly checkRegex = /(^$|(http(s)?:\/\/)([\w-]+\.)+[\w-]+((:\d{1,5})?)+([\w-]*))/;

readonly checkRegex = /(http(s)?:\/\/)([\w-]+\.)+[\w-]+[\w-]*/;
private readonly storageService = inject(StorageService);

constructor() {
Expand Down

0 comments on commit 458dd6f

Please sign in to comment.