public override void Checked()
        {
            string vInputName = this.SqlCheck.ExecutePara.InputName;
            string vValue = ObjectHelper.GetString(this.Value, vInputName);
            string regEmail = @"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*";


            if (!Regex.IsMatch(vValue.Trim(), regEmail))
            {
                string vFormat = this.SqlCheck.Format;
                string vTitle = this.GetTitle();
                if (string.IsNullOrEmpty(vFormat))
                {
                    vFormat = "[{0}]的邮箱格式错误!";
                }
            }
        }
Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐