Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Too strict regular expression used when searching for command names

Open
#434 0 comments 0 reactions 0 assignees View on GitHub

A pull request for this has already been merged.

  • #439 by @wangzelin007 — merged

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
25/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
cli, tooling

Research direction

Start with azdev/operations/regex.py at lines 91-96 and review linked pull request #439 for the status of this change. Verify that command names represented with double-quoted strings are found as well as single-quoted names, and that the reported errors no longer occur.

Written by the indexing model from the issue text.

Description

The tool uses predefined regular expressions to search for command names. However, it is strictly required to use a single quoted string to record the command name represented. Names using double quoted strings are ignored, causing unexpected errors.

Code https://github.com/Azure/azure-cli-dev-tools/blob/dev/azdev/operations/regex.py#L91-L96

Example https://dev.azure.com/azclitools/public/_build/results?buildId=135184&view=logs&j=168ccbe3-da49-5c0b-6478-08f7016e4bf5&t=10a595be-4223-5cc7-9a73-012871b6eaee&l=138

Dominant language
Python
Stars
91
Forks
134
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/azure-cli-dev-tools

All issues in Azure/azure-cli-dev-tools

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.