Ticket #623 (closed enhancement: fixed)

Opened 14 months ago

Last modified 7 months ago

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

ticket623.patch (428 bytes) - added by FND 14 months ago.
ticket623_unitTests.patch (0.7 kB) - added by FND 14 months ago.

Change History

Changed 14 months ago by FND

Changed 14 months ago by FND

  • owner changed from JeremyRuston to FND
  • status changed from new to assigned

Changed 14 months ago by FND

Changed 14 months ago by MartinBudden

  • milestone set to 2.5

Changed 14 months ago by MartinBudden

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in changeset:5143

Changed 7 months ago by MartinBudden

  • milestone changed from 2.5 to 2.4.2
Note: See TracTickets for help on using tickets.