MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / test

Function test

src/settings/appSettings.js:75–79  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

73 promptType: "number",
74 promptOptions: {
75 test(value) {
76 if (!/^\d+$/.test(String(value).trim())) return false;
77 const zoom = Number(value);
78 return zoom >= 70 && zoom <= 160;
79 },
80 },
81 info:
82 strings["settings-info-app-ui-zoom"] ||

Callers 3

index.jsFile · 0.50
tester.jsFile · 0.50
promptFunction · 0.50

Calls 1

StringInterface · 0.85

Tested by

no test coverage detected