Skip to content

Commit 8133a90

Browse files
dizel3dardatan
andauthoredOct 27, 2020
Remove $ from invalidPathRegex (#2090)
* Remove $ from invalidPathRegex Problem: `@graphql-codegen` silently ignore paths with `$`. Solution: remove `$` from `invalidPathRegex` * changeset Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
1 parent d36ee21 commit 8133a90

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

Diff for: ‎.changeset/odd-moons-hunt.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-tools/utils': patch
3+
---
4+
5+
fix(utils): Remove \$ from invalidPathRegex

Diff for: ‎packages/utils/src/helpers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function isDocumentString(str: string): boolean {
4242
return false;
4343
}
4444

45-
const invalidPathRegex = /[!$%&^<=>`]/;
45+
const invalidPathRegex = /[!%&^<=>`]/;
4646
export function isValidPath(str: string): boolean {
4747
return typeof str === 'string' && !invalidPathRegex.test(str);
4848
}

0 commit comments

Comments
 (0)
Please sign in to comment.