|
@@ -1256,8 +1256,18 @@ end:
|
|
|
{
|
|
|
if (value is null)
|
|
|
return false;
|
|
|
- Regex r = new Regex(@"^[a-zA-Z0-9]+$");
|
|
|
- return r.Match(value).Success;
|
|
|
+
|
|
|
+ try
|
|
|
+ {
|
|
|
+ Regex r = new Regex(@"^[a-zA-Z0-9]+$");
|
|
|
+ return r.Match(value).Success;
|
|
|
+ }
|
|
|
+ catch(Exception ex)
|
|
|
+ {
|
|
|
+ Log.WriteErrorLog(string.Format("Regex Match Error. {0} -> {1} ", value, ex.Message));
|
|
|
+ }
|
|
|
+
|
|
|
+ return false;
|
|
|
}
|
|
|
|
|
|
public static bool InsertJsonConfig(string node, string key, bool value = false)
|