MCPcopy
hub / github.com/SimonAKing/scrcpy-gui / number

Function number

src/renderer/utils/regular/index.js:6–8  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

4 return (/^([A-Za-z0-9_\-\.\u4e00-\u9fa5])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,8})$/).test(str)
5 },
6 number(str) {
7 return (/^[0-9]$/).test(str)
8 },
9 english(str) {
10 return (/^[a-zA-Z]+$/).test(str)
11 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected