Skip to content
This repository was archived by the owner on Mar 4, 2018. It is now read-only.

Commit b15fd2f

Browse files
committed
Remove regex in valid obj check
1 parent a350f2a commit b15fd2f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

IBMiTools/IBMiUtilities.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ public class IBMiUtilities
1818
public static bool IsValidQSYSObjectName(string s)
1919
{
2020
if (s == null || s == "") return false;
21-
return Regex.Match(s, "^[a-zA-Z#][\\w#\\.]{0,9}$").Success;
21+
if (s.Length > 10) return false;
22+
23+
return true;
2224
}
2325

2426
public static string[] GetMemberList(string Lib, string Obj)

0 commit comments

Comments
 (0)