Skip to content

Organizational Unit in Azure RemoteApp RDFE cmdlets now accepts Unicode characters. #1699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## 2016.02.02 version 1.1.1

* Azure RemoteApp: Organizational Unit in Azure RemoteApp RDFE cmdlets now accepts Unicode characters.
## 2016.01.12 version 1.1.0
* Azure SQL Database: Threat Detection policies:
* Using new Threat Detection Types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,14 @@ public abstract partial class RdsCmdlet
// ASCII code in hex, e.g. #ff
protected const string asciiCodeRegexPattern = @"#([0-9A-Fa-f]{2})+";

// Unicode grapheme
protected const string unicodeRegexPattern = @"(?>\P{M}\p{M}*)";

// used to separate entities, , or + followed by 0 or more spaces
protected const string delimiterRegexPattern = @"[\+,]\s*";

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

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