cmd/commands: export StripPrefix

This commit is contained in:
Oliver Gugger committed 2024-08-23 10:58:13 +02:00
1 parent efbaf90caf
commit c5973aa136
4 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -42,7 +42,7 @@ func parseTime(s string, base time.Time) (uint64, error) {
var lightningPrefix = "lightning:"
// stripPrefix removes accidentally copied 'lightning:' prefix.
func stripPrefix(s string) string {
// StripPrefix removes accidentally copied 'lightning:' prefix.
func StripPrefix(s string) string {
return strings.TrimSpace(strings.TrimPrefix(s, lightningPrefix))
}