Skip to content

10.20邮箱校验支持"."(谷歌邮箱)

##一、SSO

前端
global.js
//邮箱格式
	  MAIL: /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,
		
		
后端
CASCommonUtils
String str = "^([a-zA-Z0-9_\\.\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$";

##二、mk

myCloudLicense.js


trialLicense.js


SSOAccountManageView.js

##三、webui

utils/online/Util.js 
regexMail
const regex = /^[a-zA-Z0-9_\u4e00-\u9fa5]+@[a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)+$/;
/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;

myLicense  我的许可分配
TrialLicense 试用许可申请

vue ut

1. npm run unit


2. npm run test:unit         要在根路径跑 
package.json
"unit": "vue-cli-service test:unit",
"test:unit": "vue-cli-service test:unit --coverage --testResultsProcessor jest-sonar-reporter",
jest.config.js

// '<rootDir>/tests/unit/**/MyCloudLicense.spec.(js|jsx|ts|tsx)|<rootDir>/__tests__/*.(js|jsx|ts|tsx)'
    '<rootDir>/tests/unit/**/*.(js|jsx|ts|tsx)|<rootDir>/__tests__/*.(js|jsx|ts|tsx)'