diff --git a/archive/b/beef/EvenOdd.bf b/archive/b/beef/EvenOdd.bf index a0ddafa70..547b0cc91 100644 --- a/archive/b/beef/EvenOdd.bf +++ b/archive/b/beef/EvenOdd.bf @@ -16,9 +16,8 @@ class Program StringView trimmedStr = scope String(str); trimmedStr.Trim(); - // For some reason T.Parse does not treat a sign without a number as an error. - // Also, for some reason T.Parse does not treat a single quote as an invalid character. - if (trimmedStr == "-" || trimmedStr == "+" || trimmedStr.Contains('\'')) + // T.Parse ignores single quotes since they are treat as digit separators -- e.g. 1'000 + if (trimmedStr.Contains('\'')) { return .Err; }