#10554 closed defect (fixed)
[patch][test][cla] dojo.date.locale not handling double-single quotes correctly
Reported by: | Nathan Toone | Owned by: | Adam Peller |
---|---|---|---|
Priority: | high | Milestone: | 1.5 |
Component: | Date | Version: | 1.4.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
It should replace double-single quotes with a single quote - for example, adding the following to the dojo/tests/date/locale.js test case
t.is("12 o'clock AM", dojo.date.locale.format(date, {datePattern:"hh 'o''clock' a", selector:"date"}));
causes it to fail with the error:
expected 12 o'clock AM but got 12 o''clock AM
Attachments (2)
Change History (9)
Changed 11 years ago by
Attachment: | dateSingleQuote.diff added |
---|
comment:1 Changed 11 years ago by
Summary: | dojo.date.locale not handling double-single quotes correctly → [patch][test][cla] dojo.date.locale not handling double-single quotes correctly |
---|
comment:2 Changed 11 years ago by
Component: | Internationalization → Date |
---|
comment:3 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 Changed 11 years ago by
Milestone: | tbd → 1.5 |
---|
comment:5 Changed 11 years ago by
Changed 11 years ago by
Attachment: | locale.patch added |
---|
comment:7 Changed 11 years ago by
Note: See
TracTickets for help on using
tickets.
Test case and fix