Skip to content

Commit

Permalink
Lock moment to version 2.29.4 to avoid a different behavior in isVali…
Browse files Browse the repository at this point in the history
…d function o newer versions
  • Loading branch information
henriquelakiap committed Apr 11, 2024
1 parent dfa0dbf commit 441e285
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lib/types/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const formats = [
'ddd MMM DD YYYY', // 'Mon Jun 02 2014'
'MMM DD YYYY', // 'Jun 02 2014'
'M/D/YYYY', // '6/2/2014', '06/02/2014'
'MM/DD/YYYY', // '06/02/2014'
'M/D/YY', // '6/2/14'
'YYYY-MM-DD', // '2014-06-02'
'MM-DD-YYYY', // '06-02-2014'
Expand All @@ -21,7 +20,6 @@ const formats = [
'ddd DD MMM YYYY', // 'Fri 18 July 2014'
'DD MMM YYYY', // '18 July 2014'
'D/M/YYYY', // '18/7/2014'
'DD/MM/YYYY', // '18/07/2014'
'D/M/YY', // '18/7/14'
'YYYY-DD-MM', // '2014-18-07'
'DD-MM-YYYY', // '18-07-2014'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"google-libphonenumber": "^3.2.3",
"handlebars": "^4.7.7",
"lodash": "^4.17.21",
"moment": "^2.29.4",
"moment": "2.29.4",
"named-regexp": "^0.1.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion test/date.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { assert } = require('chai');
const date = require('../lib/types/date');

describe('Date', function () {
describe.only('Date', function () {
const strings = [
'Mon Jun 02 2014',
'Jun 02 2014',
Expand Down

0 comments on commit 441e285

Please sign in to comment.