diff --git a/src/constants.js b/src/constants.js index f24cd89386..a0c103e93d 100644 --- a/src/constants.js +++ b/src/constants.js @@ -53,6 +53,9 @@ export default { { key: '-date', value: 'OrderPriceDateDESC', icon: 'mdi-calendar-today' }, { key: '-created', value: 'OrderPriceCreatedDESC', icon: 'mdi-clock-outline' }, ], + DATE_FULL_REGEX_MATCH: /(\d{4})-(\d{2})-(\d{2})/, + DATE_YEAR_MONTH_REGEX_MATCH: /(\d{4})-(\d{2})/, + DATE_YEAR_REGEX_MATCH: /(\d{4})/, OSM_NAME: 'OpenStreetMap', OSM_URL: 'https://www.openstreetmap.org', OSM_NOMINATIM_SEARCH_URL: 'https://nominatim.openstreetmap.org/search', diff --git a/src/views/DateDetail.vue b/src/views/DateDetail.vue index f4b7f199c8..3125172185 100644 --- a/src/views/DateDetail.vue +++ b/src/views/DateDetail.vue @@ -50,6 +50,7 @@