captbaritone / captbaritone/datejs
Use of article 'de' breaks format (es, pt, quz)
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
```
What steps will reproduce the problem?
1. Format date using standard localization in es-, pt-, or quz- that includes
the 'de' article (i.e. longDate, monthDay)
2. The d in 'de' is formatted as a single d
What is the expected output? What do you see instead?
Expected: quarta-feira, 8' de 'junho' de '2011
Actual: quarta-feira, 8' 8e 'junho' 8e '2011
What version of the product are you using? On what operating system?
Using latest SVN trunk
Please provide any additional information below.
The issue is with the regex pattern used for replacing tokens, which is:
(\\)?(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|S)
Work around
Change regex pattern to:
(\\)?(dd?d?d?(?!e)|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|S)
Regex for fix can be viewed here: http://rubular.com/r/X9F9G5Xt2M
```
Original issue reported on code.google.com by `erik.ree...@erislogic.com` on 8 Jun 2011 at 7:36
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.