Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9345612
D6552.id23814.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
826 B
Subscribers
None
D6552.id23814.diff
View Options
diff --git a/assets/src/bundles/save/index.js b/assets/src/bundles/save/index.js
--- a/assets/src/bundles/save/index.js
+++ b/assets/src/bundles/save/index.js
@@ -366,26 +366,7 @@
}
if (validUrl && originType === 'git') {
- // additional checks for well known code hosting providers
- switch (originUrl.hostname) {
- case 'github.com':
- validUrl = isGitRepoUrl(originUrl);
- break;
-
- case 'git.code.sf.net':
- validUrl = isGitRepoUrl(originUrl);
- break;
-
- case 'bitbucket.org':
- validUrl = isGitRepoUrl(originUrl);
- break;
-
- default:
- if (originUrl.hostname.startsWith('gitlab.')) {
- validUrl = isGitRepoUrl(originUrl);
- }
- break;
- }
+ validUrl = isGitRepoUrl(originUrl);
}
if (validUrl) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 3:26 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3227557
Attached To
D6552: assets/save: Simplify origin URLs validation code
Event Timeline
Log In to Comment