We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecc68d2 commit 989234fCopy full SHA for 989234f
src/main/java/org/commonwl/viewer/services/GitHubService.java
@@ -56,7 +56,7 @@ public class GitHubService {
56
private final RepositoryService repoService;
57
58
// URL validation for directory links
59
- private final String GITHUB_DIR_REGEX = "^https:\\/\\/github\\.com\\/([A-Za-z0-9_.-]+)\\/([A-Za-z0-9_.-]+)\\/?(?:tree\\/([^/]+)\\/(.*))?$";
+ private final String GITHUB_DIR_REGEX = "^https?:\\/\\/github\\.com\\/([A-Za-z0-9_.-]+)\\/([A-Za-z0-9_.-]+)\\/?(?:(?:tree|blob)\\/([^/]+)\\/(.*))?$";
60
private final Pattern githubDirPattern = Pattern.compile(GITHUB_DIR_REGEX);
61
62
@Autowired
0 commit comments