Page 1 of 1

[SOLVED] String.IndexOfAny with startIndex > 0 doesnt work in browser

Posted: Wed Dec 20, 2017 4:00 am
by sebas

Code: Select all

            // Enter construction logic he;//re...
            var uri = "http://host.com";

            MessageBox.Show(uri.IndexOfAny(new char[] { '/', '?' }, 1).ToString()); //Em = 5 Browser = -1
            MessageBox.Show(uri.IndexOfAny(new char[] { '/', '?' }, 0).ToString()); //Em = 5 Browser = 5

Re: String.IndexOfAny with startIndex > 0 doesnt work in browser

Posted: Wed Dec 20, 2017 4:21 am
by JS-Support @Userware
Hi,

Thanks for reporting this issue. We are going to fix it asap.

Regards,
JS-Support

Re: String.IndexOfAny with startIndex > 0 doesnt work in browser

Posted: Fri Jan 12, 2018 10:30 am
by JS-Support @Userware
Hi,

This issue has been fixed in v1.0 Beta 13.2, which you can download from:

http://forums.cshtml5.com/viewforum.php?f=6

Thanks.
Regards,
JS-Support