Skip to content

Commit a6690b7

Browse files
aeworxetSouvikns
andauthored
fix: fix typos in RegExps of JSON Pointers (#164)
Co-authored-by: souvik <souvikde.ns@gmail.com>
1 parent 0ae7ede commit a6690b7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,11 @@ There are no internal references that MUST be `Reference Object`s.
202202
Regexes of internal references that MUST be `Reference Object`s:
203203

204204
```
205-
/#\/channels\/,*\/servers/
205+
/#\/channels\/.*\/servers/
206206
/#\/operations\/.*\/channel/
207207
/#\/operations\/.*\/messages/
208208
/#\/operations\/.*\/reply\/channel/
209-
/#\/operations\/,*\/reply\/messages/
209+
/#\/operations\/.*\/reply\/messages/
210210
/#\/components\/channels\/.*\/servers/
211211
/#\/components\/operations\/.*\/channel/
212212
/#\/components\/operations\/.*\/messages/

src/parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ export async function parse(
4848
excludedPathMatcher: (path: string): any => {
4949
return (
5050
// prettier-ignore
51-
(/#\/channels\/,*\/servers/).test(path) ||
51+
(/#\/channels\/.*\/servers/).test(path) ||
5252
(/#\/operations\/.*\/channel/).test(path) ||
5353
(/#\/operations\/.*\/messages/).test(path) ||
5454
(/#\/operations\/.*\/reply\/channel/).test(path) ||
55-
(/#\/operations\/,*\/reply\/messages/).test(path) ||
55+
(/#\/operations\/.*\/reply\/messages/).test(path) ||
5656
(/#\/components\/channels\/.*\/servers/).test(path) ||
5757
(/#\/components\/operations\/.*\/channel/).test(path) ||
5858
(/#\/components\/operations\/.*\/messages/).test(path) ||

0 commit comments

Comments
 (0)