MCPcopy Create free account
hub / github.com/chhoumann/quickadd / normalizeSliderValue

Function normalizeSliderValue

src/utils/valueSyntax.ts:572–578  ·  view source on GitHub ↗
(
	value: string | undefined,
	config: SliderConfig,
)

Source from the content-addressed store, hash-verified

570}
571
572export function normalizeSliderValue(
573 value: string | undefined,
574 config: SliderConfig,
575): string {
576 const normalized = normalizeNumericValue(value, config);
577 return normalized || String(config.min);
578}
579
580// The "double-quote class" that opens/closes a quoted option: the straight
581// double quote plus the curly pair editors (and Obsidian) auto-substitute. The

Callers 4

createInputFieldMethod · 0.90
renderFieldMethod · 0.90

Calls 1

normalizeNumericValueFunction · 0.85

Tested by

no test coverage detected