8000 maintain string type · plotly/plotly.js@4caa5d8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4caa5d8

Browse files
committed
maintain string type
1 parent 73676ca commit 4caa5d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/dates.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,10 @@ exports.cleanDate = function(v, dflt, calendar) {
378378
var fracMatch = /%\d?f/g;
379379
var halfYearMatch = /%h/g;
380380
var quarterToHalfYear = {
381-
'1': 1,
382-
'2': 1,
383-
'3': 2,
384-
'4': 2,
381+
'1': '1',
382+
'2': '1',
383+
'3': '2',
384+
'4': '2',
385385
};
386386
function modDateFormat(fmt, x, formatter, calendar) {
387387
fmt = fmt.replace(fracMatch, function(match) {

0 commit comments

Comments
 (0)
0