Skip to content

Commit

Permalink
chore: simplify regex
Browse files Browse the repository at this point in the history
  • Loading branch information
fdewas-aneo committed Dec 23, 2024
1 parent c66ad21 commit 46a22cc
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;
// eslint-disable-next-line no-useless-escape
readonly checkRegex = /(^$|(http(s)?:\/\/)([\w-]+\.)+[\w-]+((:[0-9]\d{1,5})?)+([\w- ;,.\/?%&=]*))/;
readonly checkRegex = /(^$|(http(s)?:\/\/)([\w-]+\.)+[\w-]+((:\d{1,5})?)+([\w-]*))/;

private readonly storageService = inject(StorageService);

Expand Down

0 comments on commit 46a22cc

Please sign in to comment.