mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-20 18:09:32 -05:00
Add regex eslint plugin, fix lints (#59371)
This commit is contained in:
@@ -112,7 +112,7 @@ function getPrereleasePatch(tag, plainPatch) {
|
||||
// but we'd prefer to just remove separators and limit ourselves to YYYYMMDD.
|
||||
// UTC time will always be implicit here.
|
||||
const now = new Date();
|
||||
const timeStr = now.toISOString().replace(/:|T|\.|-/g, "").slice(0, 8);
|
||||
const timeStr = now.toISOString().replace(/[:T.-]/g, "").slice(0, 8);
|
||||
|
||||
return `${plainPatch}-${tag}.${timeStr}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user