mirror of
https://github.com/kimmknight/remoteapptool.git
synced 2024-12-22 11:43:33 +00:00
Fix Issue #2
Fix Issue #2 * Updated REGEX to allow all lowercase and uppercase characters which allows for cross-language (for the most part) support * Updated REGEX to allow for the _ character
This commit is contained in:
parent
5f469ddc91
commit
47e0a5864f
@ -62,7 +62,7 @@ Module RemoteAppFunction
|
||||
|
||||
Public Sub ValidateDNSname(ByVal TheTextBox As TextBox)
|
||||
' pattern matches any character that is NOT A-Z (allows upper and lower case alphabets)
|
||||
Dim rx As New Regex("[^\p{L}0-9\-\.]")
|
||||
Dim rx As New Regex("[^\p{L}LlUu0-9\-\._]")
|
||||
If (rx.IsMatch(TheTextBox.Text)) Then
|
||||
TheTextBox.Text = rx.Replace(TheTextBox.Text, "")
|
||||
TheTextBox.Select(TheTextBox.Text.Length, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user