Skip to content

System.Text.RegularExpressions test fails on Browser wasm #39528

Closed

Description

@mdh1418

When running library tests on Browser wasm, Groups in Regex.Groups.Tests.cs fails on one test case

yield return new object[] { "az-Latn-AZ", "\u0131", "\u0049", RegexOptions.IgnoreCase, new string[] { "\u0049" } };

Repro

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text.RegularExpressions;

public class Test
{
    public static void Main (String[] args) {
        var pattern = "\u0131";
        var input = "\u0049";
        var options = RegexOptions.IgnoreCase;
        Regex regex = new Regex(pattern, options);
        Match match = regex.Match(input);
        Console.WriteLine(match.Success);
    }
}

Result: False
Expected: True

Activity

  1. added
    untriaged
    on Jul 17, 2020
  2. safern commented on Jul 17, 2020

    @safern
    Member

    I think this is just a limitation of the ICU data, since we don't support the az-Latn-AZ culture/locale. This is the table of locales we support in WASM: https://developer.chrome.com/webstore/i18n?csw=1#localeTable

    cc: @EgorBo is my assumption correct?

  3. safern commented on Jul 20, 2020

    @safern
    Member

    Closing as this locale is not supported in wasm ICU.

  4. ghost locked as resolved and limited conversation to collaborators on Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-wasmarea-System.Text.RegularExpressionsuntriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions