MCPcopy
hub / github.com/kciter/qart.js / chatToNum

Function chatToNum

src/qrcode.js:1431–1436  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

1429 }
1430
1431 var chatToNum = function (c) {
1432 if (c >= '0' && c <= '9') {
1433 return c.charCodeAt(0) - '0'.charCodeAt(0)
1434 }
1435 throw 'illegal char :' + c
1436 }
1437
1438 return _this
1439 }

Callers 1

strToNumFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected