[System] Fix parsing of URI schemes with digits
commit636d9c3186eb78d7bb15394bad9a7f170669e3a8
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 6 Aug 2014 12:52:42 +0000 (6 14:52 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 6 Aug 2014 12:53:01 +0000 (6 14:53 +0200)
tree966dc4a2500016ba38fd0becc3a626997bbf4b4f
parent1f1dc988ad7b165603a1175bf0a92156c4372c43
[System] Fix parsing of URI schemes with digits

Initializing an Uri previously throwed an exception when the URI scheme contained a digit (e.g. net.p2p).
The loop was missing a digit check, similar to https://github.com/mono/mono/blob/1f1dc988ad7b165603a1175bf0a92156c4372c43/mcs/class/System/System/Uri.cs#L767
mcs/class/System/System/UriParseComponents.cs
mcs/class/System/Test/System/UriTest.cs