Skip to content

Commit

Permalink
Try to improve moment detectors
Browse files Browse the repository at this point in the history
  • Loading branch information
eoftedal committed Oct 19, 2023
1 parent 7145f05 commit 40753f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion repository/jsrepository.json
Original file line number Diff line number Diff line change
Expand Up @@ -2949,7 +2949,10 @@
"func": ["moment.version"],
"filecontent": [
"//!? moment.js(?:[\n\r]+)//!? version : (§§version§§)",
"\\.version=\"(§§version§§)\".{300,500}\\.isMoment="
"\\.version=\"(§§version§§)\".{20,60}\"isBefore\".{20,60}\"isAfter\".{200,500}\\.isMoment=",
"\\.version=\"(§§version§§)\".{20,150}duration.{2,100}\\.isMoment=",
"\\.isMoment\\(.{50,400}_isUTC.{50,400}=\"(§§version§§)\"",
"=\"(§§version§§)\".{300,1000}Years:31536e6.{60,80}\\.isMoment"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion repository/testcases.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
},
"moment.js": {
"https://cdnjs.cloudflare.com/ajax/libs/moment.js/§§version§§/moment.min.js": {
"versions": ["1.6.0", "2.29.4", "2.18.0", "2.11.2"]
"versions": ["1.6.0", "2.29.4", "2.17.0", "2.11.2", "2.1.0", "2.3.0"]
}
},
"underscore.js": {
Expand Down

0 comments on commit 40753f9

Please sign in to comment.