Skip to content

Commit 2c8e414

Browse files
committed
fix xplat failures
1 parent 8877fd1 commit 2c8e414

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/AdventOfCode.2020/Day04.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ public void Part2()
7373
}
7474

7575
private static Regex s_Regex = new Regex(
76-
@"(?'value'(?'key'byr|iyr|eyr|hgt|hcl|ecl|pid|cid):[#\w]+( |\r\n)?){7,8}",
76+
@"(?'value'(?'key'byr|iyr|eyr|hgt|hcl|ecl|pid|cid):[#\w]+( |\r?\n)?){7,8}",
7777
RegexOptions.Compiled);
7878

7979
private static Regex s_Regex2 = new Regex(
80-
@"((?'x'(byr|iyr|eyr):\d{4}|hgt:\d{2,3}(cm|in)|hcl:#[a-f0-9]{6}|ecl:(amb|blu|brn|gry|grn|hzl|oth)|pid:\d{9}|cid:\w+)( |\r\n)?){7,8}",
80+
@"((?'x'(byr|iyr|eyr):\d{4}|hgt:\d{2,3}(cm|in)|hcl:#[a-f0-9]{6}|ecl:(amb|blu|brn|gry|grn|hzl|oth)|pid:\d{9}|cid:\w+)( |\r?\n)?){7,8}",
8181
RegexOptions.Compiled);
8282
}

0 commit comments

Comments
 (0)