Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/linlinjava/litemall
Browse files Browse the repository at this point in the history
  • Loading branch information
linlinjava committed Oct 7, 2021
2 parents ab54668 + 39e563b commit 5edc0a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion litemall-admin/src/utils/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 5edc0a4

Please sign in to comment.