tokenizeObsidianWords
Splits text into its maximal runs of word characters, each folded to its canonical case.
Every match Obsidian finds for an indexable name covers whole runs of this split, in order and with nothing between them, which is what lets the index find candidates without the regular expression.
Import:
import { tokenizeObsidianWords } from '@mnaoumov/obsidian-lib/obsidian-word-characters';Signature:
function tokenizeObsidianWords(text: string): string[]Parameters:
| Parameter | Type | Description |
|---|---|---|
text |
string | The text. |
Returns: string[] — The canonical tokens, in order.