Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
5edc0a47
Commit
5edc0a47
authored
Oct 07, 2021
by
linlinjava
Browse files
Merge branch 'master' of
https://github.com/linlinjava/litemall
parents
ab546683
39e563bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
.github/workflows/main.yml
View file @
5edc0a47
...
...
@@ -11,14 +11,16 @@ jobs:
matrix
:
java-version
:
-
8
-
8.0.192
-
11
-
11.0.3
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Set up JDK ${{ matrix.java-version }}
uses
:
actions/setup-java@v2
with
:
java-version
:
${{ matrix.java-version }}
distribution
:
adopt
distribution
:
zulu
-
name
:
Cache Maven packages
uses
:
actions/cache@v2
with
:
...
...
litemall-admin/src/utils/validate.js
View file @
5edc0a47
...
...
@@ -60,7 +60,7 @@ export function validAlphabets(str) {
* @returns {Boolean}
*/
export
function
validEmail
(
email
)
{
const
reg
=
/^
(([^
<>()
\[\]\\
.,;:
\s
@
"
]
+
(\.[^
<>()
\[\]\\
.,;:
\s
@
"
]
+
)
*
)
|
(
".+"
))
@
((\[[
0-9
]{1,3}\.[
0-9
]{1,3}\.[
0-9
]{1,3}\.[
0-9
]{1,3}\])
|
(([
a-zA-Z
\-
0-9
]
+
\.)
+
[
a-zA-Z
]{2,}))
$/
const
reg
=
/^
[^
\s
@
]
+
@
[^
\s
@
]
+
\.[^\s
@
]
+
$/
return
reg
.
test
(
email
)
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment