Repository: moment/luxon (js)

Issue:
fromHttp fails for Wednesdays
**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Please share a minimal code example that triggers the problem:
```js
it("Monday", () => {
  const str = "Monday, 27-Jun-22 08:49:37 GMT";
  expect(DateTime.fromHTTP(str).isValid).toBe(true);
});
it("Tuesday", () => {
  const str = "Tuesday, 28-Jun-22 08:49:37 GMT";
  expect(DateTime.fromHTTP(str).isValid).toBe(true);
});
it("Wednesday", () => {
  // FAILS
  const str = "Wednesday, 29-Jun-22 08:49:37 GMT";
  expect(DateTime.fromHTTP(str).isValid).toBe(true);
});
it("29-Jun-21", () => {
  const str = "Tuesday, 29-Jun-21 08:49:37 GMT";
  expect(DateTime.fromHTTP(str).isValid).toBe(true);
});
it("Thursday", () => {
  const str = "Thursday, 30-Jun-22 08:49:37 GMT";
  expect(DateTime.fromHTTP(str).isValid).toBe(true);
});
it("Friday", () => {
  const str = "Friday, 01-Jul-22 08:49:37 GMT";
  expect(DateTime.fromHTTP(str).isValid).toBe(true);
});

/*
   √ works
   √ Monday
   √ Tuesday
   × Wednesday
   √ Wednesday 2021
   √ Thursday
   √ Friday
*/

```

**Actual vs Expected behavior**
I expect fromHTTP to work for 29 Jun 2022, instead I'm getting parse error.

**Desktop (please complete the following information):**

- OS: Windows 11
- Browser Node 18.4.0
- Luxon version 2.4.0
- Your timezone Sydney (AEST)

**Additional context**
Add any other context about the problem here.
`"Wed, 29 Jun 2022 08:05:35 GMT"` works but not `Wednesday, 29-Jun-22 08:49:37 GMT`

Pull request:
Wednesday support for RFC 850
Closes #1224

Patch:
diff --git a/src/impl/regexParser.js b/src/impl/regexParser.js
index 0c7219aa..43689a45 100644
--- a/src/impl/regexParser.js
+++ b/src/impl/regexParser.js
@@ -234,7 +234,7 @@ function preprocessRFC2822(s) {
 const rfc1123 =
     /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,
   rfc850 =
-    /^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,
+    /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,
   ascii =
     /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
 


Test patch:
diff --git a/test/datetime/regexParse.test.js b/test/datetime/regexParse.test.js
index c297c0f9..db8ee530 100644
--- a/test/datetime/regexParse.test.js
+++ b/test/datetime/regexParse.test.js
@@ -814,6 +814,20 @@ test("DateTime.fromHTTP() can parse RFC 850", () => {
   });
 });
 
+test("DateTime.fromHTTP() can parse RFC 850 on Wednesday", () => {
+  const dt = DateTime.fromHTTP("Wednesday, 29-Jun-22 08:49:37 GMT");
+  expect(dt.isValid).toBe(true);
+  expect(dt.toUTC().toObject()).toEqual({
+    year: 2022,
+    month: 6,
+    day: 29,
+    hour: 8,
+    minute: 49,
+    second: 37,
+    millisecond: 0,
+  });
+});
+
 test("DateTime.fromHTTP() can parse ASCII dates with one date digit", () => {
   const dt = DateTime.fromHTTP("Sun Nov  6 08:49:37 1994");
   expect(dt.isValid).toBe(true);