clear-branches
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -31,3 +31,3 @@ #!/usr/bin/env node | ||
async function lsWithGrep() { | ||
async function clearBranches() { | ||
try { | ||
@@ -37,3 +37,3 @@ const args = process.argv.slice(2).join(''); | ||
const ignore = args.match(/^--ignore=(((feat|fix|refactor|chore)\/[\w-\d]+)|,){1,}/g); | ||
const ignore = args.match(/^--ignore=((\/[\w-\d]+)|,){1,}/g); | ||
@@ -43,3 +43,3 @@ const hasBranchesToIgnore = ignore && !!ignore.length; | ||
const ignoreBranchesRegex = new RegExp(`(\\*| |master|develop|release|${ignoreBranches})`, 'g'); | ||
const ignoreBranchesRegex = new RegExp(`(\\*| |main|master|develop|release|${ignoreBranches})`, 'g'); | ||
@@ -73,2 +73,3 @@ const branches = stdoutGb | ||
} | ||
lsWithGrep(); | ||
clearBranches(); |
{ | ||
"name": "clear-branches", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "productivity and easy way to clear your local branches", | ||
@@ -5,0 +5,0 @@ "main": "clearBranches.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75999