Skip to content
代码片段 群组 项目
提交 59dd6ce7 编辑于 作者: Mehrad Malayeri's avatar Mehrad Malayeri
浏览文件
上级 f56f889d
No related branches found
No related tags found
无相关合并请求
......@@ -116,6 +116,10 @@ function isValidNumberString(value) {
return /^(0x)?[\dA-F]+$/i.test(value) || Number.isInteger(Number(value));
}
function isValidSignedNumberString(value) {
return /^(0x)?[\dA-F]+$/i.test(value) || Number.isInteger(Number(value));
}
function isValidFloat(value) {
return !/^0x/i.test(value) && !isNaN(Number(value));
}
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册