Skip to content

splitPrefix beta ​

Function of @v12-engine/editor

ts
export declare function splitPrefix(query: string, prefixes?: Record<string, string>): {
    only?: string;
    text: string;
};

What was typed, split from a first character that searches one source alone (> what the editor does, w the waves): the source's id, and the words after it. A sign counts at once; a letter alone or with a space after it, so that "wall" is not the waves' "all"