Skip to content

Commit

Permalink
Update extension repo regex to server changes (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
schroda authored Jan 15, 2024
1 parent 6708a95 commit bed5863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screens/settings/ServerSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const ServerSettings = () => {
placeholder="https://github.com/MY_ACCOUNT/MY_REPO/tree/repo"
validateItem={(repo) =>
!!repo.match(
/https:\/\/(?:www|raw)?(?:github|githubusercontent)\.com\/([^/]+)\/([^/]+)(?:\/(?:tree|blob)\/(.*))?\/?/g,
/https:\/\/(www\.|raw\.)?(github|githubusercontent)\.com\/([^/]+)\/([^/]+)((\/tree|\/blob)?\/([^/\n]*))?(\/([^/\n]*\.json)?)?/g,
)
}
invalidItemError={t('extension.settings.repositories.custom.error.label.invalid_url')}
Expand Down

0 comments on commit bed5863

Please sign in to comment.