fixed single digit dates (#767)

Co-authored-by: NaddH1 <naderhorani@hotmail.com>
This commit is contained in:
NaddH1
2024-02-09 20:41:00 +03:00
committed by GitHub
parent e37871d73f
commit 1d9451312a
+1 -1
View File
@@ -117,7 +117,7 @@ class Genesis implements Plugin.PluginBase {
"dec",
];
const rx = new RegExp(
`(${months.join("|")}).*? (\\d{2}).*?(\\d{4})`,
`(${months.join("|")}).*? (\\d{1,2}).*?(\\d{4})`,
"i"
).exec(releaseDate);
if (!rx) return;