We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29fd0a3 commit bec971bCopy full SHA for bec971b
uview-ui/libs/function/test.js
@@ -2,7 +2,7 @@
2
* 验证电子邮箱格式
3
*/
4
function email(value) {
5
- return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
+ return /[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/.test(value);
6
}
7
8
/**
uview-ui/package.json
@@ -1,6 +1,6 @@
1
{
"name": "uview-ui",
- "version": "1.8.3",
+ "version": "1.8.4",
"description": "uView UI,是uni-app生态优秀的UI框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
"main": "index.js",
"keywords": [
0 commit comments