Skip to content

Commit

Permalink
Merge pull request #9 from nicolonsky/dev
Browse files Browse the repository at this point in the history
Update regex to accept underline character
  • Loading branch information
nicolonsky authored Dec 14, 2019
2 parents a884f2d + 55bdb96 commit 9601e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IntuneDriveMapping/Models/DriveMappingModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class DriveMappingModel
{
[Display(Name ="UNC Path")]
[Required]
[RegularExpression(@"^\\\\[a-zA-Z0-9\.\-_\@]{1,}(\\[a-zA-Z0-9\%\$\:]{1,}){1,}[\$]{0,1}", ErrorMessage = "Valid UNC path required")]
[RegularExpression(@"^\\\\[a-zA-Z0-9\.\-_\@]{1,}(\\[a-zA-Z0-9\%\$\:\_]{1,}){1,}[\$]{0,1}", ErrorMessage = "Valid UNC path required")]
public string Path { get; set; }
[Required]
[RegularExpression(@"^[a-zA-Z]{1}$", ErrorMessage = "Specify single character")]
Expand Down

0 comments on commit 9601e61

Please sign in to comment.