globalizejs/globalize

Date: Handle undefined skeleton

Open

#469 aberto em 23 de jul. de 2015

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (645 forks)batch import
date modulehelp wantedquick change

Métricas do repositório

Stars
 (4.759 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador