azdo-cli 0.5.0-025-multi-org-support.449 → 0.5.0-025-multi-org-support.451

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -901,7 +901,7 @@ function readGitConfigContent() {
901
901
  }
902
902
  if (stat.isFile()) {
903
903
  const ref = fs.readFileSync(gitPath, "utf-8");
904
- const m = /^gitdir:\s*(.+)$/m.exec(ref);
904
+ const m = /^gitdir:[ \t]*([^\r\n]+)/m.exec(ref);
905
905
  if (m) {
906
906
  return fs.readFileSync(path.join(path.resolve(dir, m[1].trim()), "config"), "utf-8");
907
907
  }
@@ -931,7 +931,7 @@ function gitConfigToRemoteLines(configContent) {
931
931
  continue;
932
932
  }
933
933
  if (currentRemote && !emittedUrl) {
934
- const urlMatch = /^\s+url\s*=\s*(.+)$/.exec(line);
934
+ const urlMatch = /^[ \t]+url[ \t]*=[ \t]*([^\r\n]+)/.exec(line);
935
935
  if (urlMatch) {
936
936
  lines.push(`${currentRemote} ${urlMatch[1].trim()} (fetch)`);
937
937
  emittedUrl = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azdo-cli",
3
- "version": "0.5.0-025-multi-org-support.449",
3
+ "version": "0.5.0-025-multi-org-support.451",
4
4
  "description": "Azure DevOps CLI tool",
5
5
  "type": "module",
6
6
  "bin": {