mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Replace deprecated String.prototype.substr()
This commit is contained in:
parent
dc593daba8
commit
bfa355b58d
3 changed files with 5 additions and 5 deletions
|
@ -17,7 +17,7 @@ const fs = require("fs");
|
|||
function getAlphaVersion(manifest){
|
||||
"use strict";
|
||||
const now = new Date();
|
||||
const date = now.toISOString().substr(0, 10).replace(/-/g, "");
|
||||
const date = now.toISOString().substring(0, 10).replace(/-/g, "");
|
||||
return manifest.version.replace(/^([\d.]+).*$/, "$1Alpha" + date);
|
||||
}
|
||||
function getRCVersion(manifest){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue