Skip to content

Commit

Permalink
Fix a regex
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown committed Jun 14, 2024
1 parent 43156f5 commit 175398a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/keystatic/src/reader/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function createMinimalFsForGitHubWithRecursiveTree(opts: {
};
}

const lastPartOfPathRegex = /[^/](.+)$/;
const lastPartOfPathRegex = /([^/]+)$/;

function toTreeNodes(entries: TreeEntry[]) {
const nodes = new Map<string, TreeEntry>();
Expand Down

0 comments on commit 175398a

Please sign in to comment.