﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33589	Incomplete string escaping in formats for calendar.	Shrikant Dhayje	Ankur Roy	"At 
The Given Code
{{{
390| handleCalendarCallback: function(num) {
391|            let format = get_format('DATE_INPUT_FORMATS')[0];
392|            // the format needs to be escaped a little
393|            format = format.replace('\\', '\\\\')
394|                .replace('\r', '\\r')
395|                .replace('\n', '\\n')
396|                .replace('\t', '\\t')
}}}
This replaces only the first occurrence of all the escape characters not all, and as per the the function is unable to completely accurate replacement of string with escape characters.

This replaces only the first occurrence of ""//"", ""/r"", ""/n"", ""/t"" and ""'"",
So We Should Use regex for replacing all occurrence.

Used regex for easy updating.

This issue ""Has patch"" https://github.com/django/django/pull/15460
"	Bug	closed	contrib.admin	4.0	Normal	invalid	bug,regex,Inaccurate	David Wobrock Sander Beekhuis	Unreviewed	1	0	0	0	1	0
