INNER CODE UNIT · TypeScript

versionRegex

KinsonDigital/Velaptor · DevTools/prep-prev-release.ts:33

const versionRegex = /<Version>(.+)<\/Version>/;
const fileVersionRegex = /<FileVersion>(.+)<\/FileVersion>/;
const versionMatch = projectFileData.match(versionRegex);
const fileVersionMatch = projectFileData.match(fileVersionRegex);

if (versionMatch === null) {
	console.log("Could not find version in the .csproj file.");
	Deno.exit(1);
}

if (fileVersionMatch === null) {
	console.log("Could not find file version in the .csproj file.");
	Deno.exit(1);
}

const ownerName = "KinsonDigital";
const repoName = "Velaptor";
const prevLabel = "preview-release";

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…