Skip to content

Commit

Permalink
fix: Error parsing grpc URL starting with grpc fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AnWeber committed Jan 30, 2022
1 parent 8ba54b7 commit 9bbd08e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
- `# @loop` allows actions before execution of the loop (e.g. ' # @ref ...`)
- use all dotenv files between httpfile directory and rootDir (#174)


## 4.10.0 (2022-01-27)

#### Features

- use Host Header as Url Prefix (#189)
- add cookie to userSessionStore instead cookieStore
- `# @loop` allows actions before execution of the loop (e.g. ' # @ref ...`)
- use all dotenv files between httpfile directory and rootDir (#174)

#### Fix

- handle Windows directory separators in glob pattern (#175)
Expand Down
2 changes: 1 addition & 1 deletion src/actions/grpcClientAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as grpc from '@grpc/grpc-js';
import { Readable, Writable, Duplex } from 'stream';

const GrpcUrlRegex =
/^\s*(?<protocol>grpc|https?)?(:\/\/)?(?<server>[^/]+?)(\/(?<path>.+))?\/(?<service>[^/]+?)\/(?<method>[^/]+?)$/iu;
/^\s*((?<protocol>grpc|https?):\/\/)?(?<server>[^/]+?)(\/(?<path>.+))?\/(?<service>[^/]+?)\/(?<method>[^/]+?)$/iu;

interface GrpcError {
details?: string;
Expand Down

0 comments on commit 9bbd08e

Please sign in to comment.