Ticket #623 (closed enhancement: fixed)
add \ quoting of characters in date format strings
| Reported by: | EricShulman | Owned by: | FND |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.4.2 |
| Component: | core | Version: | |
| Severity: | low | Keywords: | |
| Cc: |
Description
Add support for use of \ to quote characters within date format strings so that, "\s\s" or "\m\m" can be used within the title param for <<newJournal>> to bypass date format replacement so that literal "ss" or "mm" can be included in the resulting tiddler title.
The code to do this is just one extra line added to the end of Date.prototype.formatString(), immediately before returning the result:
t = t.replace(/\\/g,""); // strip backslashes used to quote formats return t;
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
