mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-29 07:20:35 +00:00
Clean script source
This commit is contained in:
@@ -219,12 +219,16 @@ public interface ScriptTextSource {
|
||||
|
||||
@Override
|
||||
public String toSummary() {
|
||||
var cleaned = url
|
||||
.replace("http://", "")
|
||||
.replace("https://", "")
|
||||
.replace("file://", "")
|
||||
.replace("ssh://", "")
|
||||
.replace("raw.githubusercontent.com/", "")
|
||||
.replace("github.com/", "")
|
||||
.replace("refs/heads/", "");
|
||||
return AppI18n.get(
|
||||
"sourcedFrom",
|
||||
url.replace("http://", "")
|
||||
.replace("https://", "")
|
||||
.replace("file://", "")
|
||||
.replace("ssh://", ""));
|
||||
"sourcedFrom", cleaned);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user