MCPcopy Create free account
hub / github.com/Make-md/makemd / parseSortStrat

Function parseSortStrat

src/core/utils/parser.tsx:7–10  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

5//named parsers for converting strings to values
6
7export const parseSortStrat = (str: string): SpaceSort => {
8 const [a, b] = str.split("_");
9 return { field: a, asc: b == "asc", group: true, recursive: true };
10};
11
12export const parseLinkDisplayString = (string: string) => {
13 return pathToString(parseLinkString(string));

Callers

nothing calls this directly

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected