You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
改善詳細 / Details of Improvement
iamkun/dayjs@v1.8.29...v1.8.31#diff-deacbb7ba720e1d8d121b6fe08bad977R29
https://github.com/tokyo-metropolitan-gov/covid19/blob/5ec51b0ca6964cea349c09f6da038ae38bf95dc5/utils/formatDate.ts#L69
'2020/7/31'.match(/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/)
これが1.8.31の日付文字列を判定する正規表現で、nullを返します。'2020/7/31'.match(/^(\d{4})-?(\d{1,2})?-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/)
こっちが1.8.29で、これならパースしてくれます。もともとスラッシュを想定していなくて、ハイフン区切りを期待した正規表現です。これまで動いていたのがラッキーなんだと思います。
期待する見せ方・挙動 / Expected behavior
動作環境・ブラウザ / Environment
The text was updated successfully, but these errors were encountered: