super-pages 0.0.14-up → 0.0.15-up

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "super-pages",
3
3
  "private": false,
4
- "version": "0.0.14-up",
4
+ "version": "0.0.15-up",
5
5
  "type": "module",
6
6
  "main": "./lib/super-pages.js",
7
7
  "scripts": {
@@ -730,7 +730,7 @@ const Util = {
730
730
  return baseUrl
731
731
  },
732
732
  getFormatDate(date, formatStr) {
733
- if (formatStr === 'yyyy-MM-dd') {
733
+ if (formatStr === 'yyyy-MM-dd' || formatStr === 'YYYY-MM-DD') {
734
734
  var year = date.getFullYear()
735
735
  var month =
736
736
  date.getMonth() + 1 < 10