globalizejs/globalize

Date: Handle undefined skeleton

Open

#469 建立於 2015年7月23日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)JavaScript (645 fork)batch import
date modulehelp wantedquick change

倉庫指標

Star
 (4,759 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

When using an undefined skeleton, e.g., {skeleton: '<anything here that doesn't exist>'} https://github.com/jquery/globalize/blob/master/src/date.js#L64 returns undefined, which in turn is passed as the expanded-pattern to the formatter, which in turn tries to recognize u and fails.

Originally raised on #455.

貢獻者指南