Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Apr 12, 2024
1 parent 76444ad commit fe69bff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .changeset/spotty-kiwis-crash.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Disallow new lines in paths when checking with `isValidPath`

A string may sometimes look like a path but is not (like an SDL of a simple
GraphQL schema). To make sure we don't yield false-positives in such cases,
we disallow new lines in paths (even thouhg most Unix systems support new
we disallow new lines in paths (even though most Unix systems support new
lines in file names).
2 changes: 1 addition & 1 deletion packages/utils/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const invalidPathRegex = /[‘“!%^<>`\n]/;
*
* A string may sometimes look like a path but is not (like an SDL of a simple
* GraphQL schema). To make sure we don't yield false-positives in such cases,
* we disallow new lines in paths (even thouhg most Unix systems support new
* we disallow new lines in paths (even though most Unix systems support new
* lines in file names).
*/
export function isValidPath(str: any): boolean {
Expand Down

0 comments on commit fe69bff

Please sign in to comment.