Skip to content

Commit b35aef5

Browse files
Merge pull request #68 from sandeepsnairms/main
Update Regex for namespace validation
2 parents bca2dcf + 40b78e1 commit b35aef5

File tree

1 file changed

+1
-1
lines changed
  • OnlineMongoMigrationProcessor/Helpers

1 file changed

+1
-1
lines changed

OnlineMongoMigrationProcessor/Helpers/Helper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public static string UpdateAppName(string connectionString, string appName)
223223
public static Tuple<bool, string> ValidateNamespaceFormat(string input)
224224
{
225225
// Regular expression pattern to match db1.col1, db2.col2, db3.col4 format
226-
string pattern = @"^[a-zA-Z0-9_-]+\.[a-zA-Z0-9_]+$";
226+
string pattern = @"^[a-zA-Z0-9_-]+\.[a-zA-Z0-9_-]+$";
227227

228228
// Split the input by commas
229229
string[] items = input.Split(',');

0 commit comments

Comments
 (0)