Skip to content

Commit

Permalink
fix: fix typos in RegExps of JSON Pointers (#164)
Browse files Browse the repository at this point in the history
Co-authored-by: souvik <[email protected]>
  • Loading branch information
aeworxet and Souvikns authored May 20, 2024
1 parent 0ae7ede commit a6690b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ There are no internal references that MUST be `Reference Object`s.
Regexes of internal references that MUST be `Reference Object`s:

```
/#\/channels\/,*\/servers/
/#\/channels\/.*\/servers/
/#\/operations\/.*\/channel/
/#\/operations\/.*\/messages/
/#\/operations\/.*\/reply\/channel/
/#\/operations\/,*\/reply\/messages/
/#\/operations\/.*\/reply\/messages/
/#\/components\/channels\/.*\/servers/
/#\/components\/operations\/.*\/channel/
/#\/components\/operations\/.*\/messages/
Expand Down
4 changes: 2 additions & 2 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ export async function parse(
excludedPathMatcher: (path: string): any => {
return (
// prettier-ignore
(/#\/channels\/,*\/servers/).test(path) ||
(/#\/channels\/.*\/servers/).test(path) ||
(/#\/operations\/.*\/channel/).test(path) ||
(/#\/operations\/.*\/messages/).test(path) ||
(/#\/operations\/.*\/reply\/channel/).test(path) ||
(/#\/operations\/,*\/reply\/messages/).test(path) ||
(/#\/operations\/.*\/reply\/messages/).test(path) ||
(/#\/components\/channels\/.*\/servers/).test(path) ||
(/#\/components\/operations\/.*\/channel/).test(path) ||
(/#\/components\/operations\/.*\/messages/).test(path) ||
Expand Down

0 comments on commit a6690b7

Please sign in to comment.