MCPcopy Index your code
hub / github.com/larksuite/cli / truncateTaskURL

Function truncateTaskURL

shortcuts/task/task_util.go:162–170  ·  view source on GitHub ↗

truncateTaskURL removes extra query parameters from task applink, keeping only guid.

(u string)

Source from the content-addressed store, hash-verified

160
161// truncateTaskURL removes extra query parameters from task applink, keeping only guid.
162func truncateTaskURL(u string) string {
163 if u == "" {
164 return ""
165 }
166 if idx := strings.Index(u, "&"); idx != -1 {
167 return u[:idx]
168 }
169 return u
170}
171
172// parseTimeFlagSec parses a time flag that can be absolute (ISO 8601, timestamp) or relative (+/- Nd/w/m/h).
173// It returns the Unix seconds string.

Callers 15

shortcuts.goFile · 0.85
task_followers.goFile · 0.85
task_reminder.goFile · 0.85
task_update.goFile · 0.85
task_search.goFile · 0.85
tasklist_create.goFile · 0.85
task_complete.goFile · 0.85
task_assign.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected