cmd/commands: export StripPrefix

This commit is contained in:
Oliver Gugger
2024-05-02 14:38:13 +02:00
parent efbaf90caf
commit c5973aa136
4 changed files with 7 additions and 7 deletions

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))
}