FastScriptReload icon indicating copy to clipboard operation
FastScriptReload copied to clipboard

[Error] An error is caused if the source code contains English characters

Open WuKaiYi opened this issue 2 years ago • 1 comments

Included in the original code

    public static string[] SplitStringByComma(string input)
    {
        string[] splitStrings = input.Split(new char[] { ',', ',' });

        return splitStrings;
    }

After FSR processing

    public static string[] SplitStringByComma(string input)
    {
        string[] splitStrings = input.Split(new char[] { '��', ',' });

        return splitStrings;
    }

No problem if don't use Chinese characters

WuKaiYi avatar Aug 31 '23 11:08 WuKaiYi

Thanks - It's probably Roslyn not treating those characters correctly - I'll leave it as a bug but it won't unfortunately have too high of a priority to fix

handzlikchris avatar Sep 04 '23 08:09 handzlikchris