Skip to content

fix: remove pubDate due to i18n date string parsing issue#2144

Merged
DIYgod merged 1 commit intoDIYgod:masterfrom
HenryQW:fix/exchange_repair
May 16, 2019
Merged

fix: remove pubDate due to i18n date string parsing issue#2144
DIYgod merged 1 commit intoDIYgod:masterfrom
HenryQW:fix/exchange_repair

Conversation

@HenryQW
Copy link
Copy Markdown
Collaborator

@HenryQW HenryQW commented May 15, 2019

多语言日期格式很难全部照顾到,想过用 regex 处理:

date = date.replace(/\D+/g, '-').replace(/^-?|-?$/g, '');

kr: 2019년 4월 25일 返回:2018-04-25
ru: 9 ноября 2018 г. 返回:9-2018

moment 也无法解析,只能暂时移除。

Close #2141.

@DIYgod DIYgod merged commit 770a094 into DIYgod:master May 16, 2019
@DIYgod
Copy link
Copy Markdown
Owner

DIYgod commented May 16, 2019

Merged, thanks!

@HenryQW HenryQW deleted the fix/exchange_repair branch May 20, 2019 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

更换和维修扩展计划区域代码bug

2 participants