Skip to content

Commit 80754b9

Browse files
committed
RemoteApp Organizational Unit accepts unicode characters
1 parent e51c883 commit 80754b9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/ServiceManagement/RemoteApp/Commands.RemoteApp/Common/RemoteAppRegEx.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,14 @@ public abstract partial class RdsCmdlet
5757
// ASCII code in hex, e.g. #ff
5858
protected const string asciiCodeRegexPattern = @"#([0-9A-Fa-f]{2})+";
5959

60+
// Unicode grapheme
61+
protected const string unicodeRegexPattern = @"(?>\P{M}\p{M}*)";
62+
6063
// used to separate entities, , or + followed by 0 or more spaces
6164
protected const string delimiterRegexPattern = @"[\+,]\s*";
6265

6366
// an entity value, consists of normal chars, escape codes and hex codes
64-
protected const string entityRegexPattern = @"(" + normalCharRegexPattern + @"|" + escapedCharRegexPattern + @"|" + asciiCodeRegexPattern + @")+";
67+
protected const string entityRegexPattern = @"(" + normalCharRegexPattern + @"|" + escapedCharRegexPattern + @"|" + asciiCodeRegexPattern + @"|" + unicodeRegexPattern + @")+";
6568

6669
// a key/entity pair, e.g DC=foo-bar.com
6770
protected const string keyEntityRegexPattern = @"(" + keyRegexPattern + @"=" + entityRegexPattern + @")";
@@ -92,6 +95,10 @@ public abstract partial class RdsCmdlet
9295
* |
9396
* Or a # followed by a sequence of 8 bit ASCII codes in hex
9497
* (#([0-9A-Fa-f]{2})+)
98+
*
99+
* Or a Unicode grapheme
100+
* \P{M}\p{M}*+
101+
*
95102
* There will be 1 or more characters matching this pattern
96103
* )+
97104
* )

0 commit comments

Comments
 (0)