rc-picker
Advanced tools
Comparing version 0.0.1-alpha.59 to 0.0.1-alpha.60
@@ -126,5 +126,6 @@ "use strict"; | ||
if (format.includes('o')) { | ||
var matchFormat = format.match(/[YyMmDdHhSsWw]+/g); | ||
var matchText = formatText.match(/\d+/g); | ||
if (format.includes('wo') || format.includes('Wo')) { | ||
format = format.replace(/wo/g, 'w').replace(/Wo/g, 'W'); | ||
var matchFormat = format.match(/[-YyMmDdHhSsWwGg]+/g); | ||
var matchText = formatText.match(/[-\d]+/g); | ||
@@ -131,0 +132,0 @@ if (matchFormat && matchText) { |
@@ -159,3 +159,3 @@ "use strict"; | ||
case 'week': | ||
mergedFormat = 'YYYY-Wo'; | ||
mergedFormat = 'gggg-wo'; | ||
break; | ||
@@ -162,0 +162,0 @@ |
@@ -126,5 +126,6 @@ "use strict"; | ||
if (format.includes('o')) { | ||
var matchFormat = format.match(/[YyMmDdHhSsWw]+/g); | ||
var matchText = formatText.match(/\d+/g); | ||
if (format.includes('wo') || format.includes('Wo')) { | ||
format = format.replace(/wo/g, 'w').replace(/Wo/g, 'W'); | ||
var matchFormat = format.match(/[-YyMmDdHhSsWwGg]+/g); | ||
var matchText = formatText.match(/[-\d]+/g); | ||
@@ -131,0 +132,0 @@ if (matchFormat && matchText) { |
@@ -159,3 +159,3 @@ "use strict"; | ||
case 'week': | ||
mergedFormat = 'YYYY-Wo'; | ||
mergedFormat = 'gggg-wo'; | ||
break; | ||
@@ -162,0 +162,0 @@ |
{ | ||
"name": "rc-picker", | ||
"version": "0.0.1-alpha.59", | ||
"version": "0.0.1-alpha.60", | ||
"description": "React date & time picker", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
585093
13892