Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Turkish parsing #1432

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/locale/tr/_lib/match/index.js
Expand Up @@ -30,7 +30,7 @@ var parseQuarterPatterns = {
}

var matchMonthPatterns = {
narrow: /^[jfmasond]/i,
narrow: /^[oşmnhtaek]/i,
abbreviated: /^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,
wide: /^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i
}
Expand All @@ -52,16 +52,16 @@ var parseMonthPatterns = {
any: [
/^o/i,
/^ş/i,
/^ma/i,
/^mar/i,
/^n/i,
/^ma/i,
/^may/i,
/^h/i,
/^t/i,
/^a/i,
/^/i,
/^ey/i,
/^ek/i,
/^k/i,
/^a/i
/^ar/i
]
}

Expand Down
16 changes: 8 additions & 8 deletions src/locale/tr/snapshot.md
Expand Up @@ -28,16 +28,16 @@
| | | 2019-07-10T12:13:14.015Z | Tem | 2019-07-01T00:00:00.000Z |
| | MMMM | 2019-02-11T12:13:14.015Z | Şubat | 2019-02-01T00:00:00.000Z |
| | | 2019-07-10T12:13:14.015Z | Temmuz | 2019-07-01T00:00:00.000Z |
| | MMMMM | 2019-02-11T12:13:14.015Z | Ş | Invalid Date |
| | | 2019-07-10T12:13:14.015Z | T | Invalid Date |
| | MMMMM | 2019-02-11T12:13:14.015Z | Ş | 2019-02-01T00:00:00.000Z |
| | | 2019-07-10T12:13:14.015Z | T | 2019-07-01T00:00:00.000Z |
| Month (stand-alone) | Lo | 2019-02-11T12:13:14.015Z | 2. | 2019-02-01T00:00:00.000Z |
| | | 2019-07-10T12:13:14.015Z | 7. | 2019-07-01T00:00:00.000Z |
| | LLL | 2019-02-11T12:13:14.015Z | Şub | 2019-02-01T00:00:00.000Z |
| | | 2019-07-10T12:13:14.015Z | Tem | 2019-07-01T00:00:00.000Z |
| | LLLL | 2019-02-11T12:13:14.015Z | Şubat | 2019-02-01T00:00:00.000Z |
| | | 2019-07-10T12:13:14.015Z | Temmuz | 2019-07-01T00:00:00.000Z |
| | LLLLL | 2019-02-11T12:13:14.015Z | Ş | Invalid Date |
| | | 2019-07-10T12:13:14.015Z | T | Invalid Date |
| | LLLLL | 2019-02-11T12:13:14.015Z | Ş | 2019-02-01T00:00:00.000Z |
| | | 2019-07-10T12:13:14.015Z | T | 2019-07-01T00:00:00.000Z |
| Local week of year | wo | 2019-01-01T12:13:14.015Z | 1. | 2018-12-31T00:00:00.000Z |
| | | 2019-12-01T12:13:14.015Z | 48. | 2019-11-25T00:00:00.000Z |
| ISO week of year | Io | 2019-01-01T12:13:14.015Z | 1. | 2018-12-31T00:00:00.000Z |
Expand Down Expand Up @@ -163,11 +163,11 @@
| Long localized date | P | 1987-02-11T12:13:14.015Z | 11.02.1987 | 1987-02-11T00:00:00.000Z |
| | | 1453-05-29T23:59:59.999Z | 29.05.1453 | 1453-05-29T00:00:00.000Z |
| | PP | 1987-02-11T12:13:14.015Z | 11 Şub 1987 | 1987-02-11T00:00:00.000Z |
| | | 1453-05-29T23:59:59.999Z | 29 May 1453 | 1453-03-29T00:00:00.000Z |
| | | 1453-05-29T23:59:59.999Z | 29 May 1453 | 1453-05-29T00:00:00.000Z |
| | PPP | 1987-02-11T12:13:14.015Z | 11 Şubat 1987 | 1987-02-11T00:00:00.000Z |
| | | 1453-05-29T23:59:59.999Z | 29 Mayıs 1453 | 1453-03-29T00:00:00.000Z |
| | | 1453-05-29T23:59:59.999Z | 29 Mayıs 1453 | 1453-05-29T00:00:00.000Z |
| | PPPP | 1987-02-11T12:13:14.015Z | 11 Şubat 1987 Çarşamba | 1987-02-04T00:00:00.000Z |
| | | 1453-05-29T23:59:59.999Z | 29 Mayıs 1453 Pazar | 1453-03-06T00:00:00.000Z |
| | | 1453-05-29T23:59:59.999Z | 29 Mayıs 1453 Pazar | 1453-05-08T00:00:00.000Z |
| Long localized time | p | 1987-02-11T12:13:14.015Z | 12:13 | 1987-02-11T12:13:00.000Z |
| | | 1453-05-29T23:59:59.999Z | 23:59 | 1453-05-29T23:59:00.000Z |
| | pp | 1987-02-11T12:13:14.015Z | 12:13:14 | 1987-02-11T12:13:14.000Z |
Expand All @@ -179,7 +179,7 @@
| Combination of date and time | Pp | 1987-02-11T12:13:14.015Z | 11.02.1987, 12:13 | 1987-02-11T12:13:00.000Z |
| | | 1453-05-29T23:59:59.999Z | 29.05.1453, 23:59 | 1453-05-29T23:59:00.000Z |
| | PPpp | 1987-02-11T12:13:14.015Z | 11 Şub 1987, 12:13:14 | 1987-02-11T12:13:14.000Z |
| | | 1453-05-29T23:59:59.999Z | 29 May 1453, 23:59:59 | 1453-03-29T23:59:59.000Z |
| | | 1453-05-29T23:59:59.999Z | 29 May 1453, 23:59:59 | 1453-05-29T23:59:59.000Z |
| | PPPppp | 1987-02-11T12:13:14.015Z | 11 Şubat 1987 saat 12:13:14 GMT+0 | Errored |
| | | 1453-05-29T23:59:59.999Z | 29 Mayıs 1453 saat 23:59:59 GMT+0 | Errored |
| | PPPPpppp | 1987-02-11T12:13:14.015Z | 11 Şubat 1987 Çarşamba saat 12:13:14 GMT+00:00 | Errored |
Expand Down