MCPcopy Create free account
hub / github.com/openai/plugins / readDigits

Function readDigits

plugins/shopify/skills/shopify-admin/scripts/validate.mjs:1244–1261  ·  view source on GitHub ↗
(lexer, start, firstCode)

Source from the content-addressed store, hash-verified

1242 );
1243 }
1244 function readDigits(lexer, start, firstCode) {
1245 if (!(0, _characterClasses.isDigit)(firstCode)) {
1246 throw (0, _syntaxError.syntaxError)(
1247 lexer.source,
1248 start,
1249 `Invalid number, expected digit but got: ${printCodePointAt(
1250 lexer,
1251 start
1252 )}.`
1253 );
1254 }
1255 const body = lexer.source.body;
1256 let position = start + 1;
1257 while ((0, _characterClasses.isDigit)(body.charCodeAt(position))) {
1258 ++position;
1259 }
1260 return position;
1261 }
1262 function readString(lexer, start) {
1263 const body = lexer.source.body;
1264 const bodyLength = body.length;

Callers 1

readNumberFunction · 0.70

Calls 1

printCodePointAtFunction · 0.70

Tested by

no test coverage detected