MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / stripPropertyPrefix

Function stripPropertyPrefix

src/bases/sortOrderUtils.ts:177–183  ·  view source on GitHub ↗
(propertyId: string)

Source from the content-addressed store, hash-verified

175 * Strip Bases property prefixes (note., file., formula., task.) from a property ID.
176 */
177export function stripPropertyPrefix(propertyId: string): string {
178 const parts = propertyId.split(".");
179 if (parts.length > 1 && ["note", "file", "formula", "task"].includes(parts[0])) {
180 return parts.slice(1).join(".");
181 }
182 return propertyId;
183}
184
185/**
186 * Check whether the configured sort-order field is present in the view's sort configuration.

Callers 10

handleTaskDropMethod · 0.90
getGroupDisplayTitleMethod · 0.90
isPropertyFieldMethod · 0.90
getKanbanPropertyValueFunction · 0.90
getKanbanSwimLaneKeysFunction · 0.90
buildKanbanTaskGroupsFunction · 0.90
getConfiguredKanbanOrderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected