Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@neyunse
Copy link
Collaborator

@neyunse neyunse commented Aug 8, 2025

No description provided.

Copilot AI review requested due to automatic review settings August 8, 2025 04:19
@neyunse neyunse merged commit 96e8ecf into dev Aug 8, 2025
1 check was pending
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a syntax error in the GitHub Actions workflow file by correcting a malformed regular expression pattern used to extract the version number from the _version.py file.

  • Fixed missing closing parenthesis in the regex pattern for version extraction

id: get_version
run: |
VERSION=$(python -c "import re; f=open('vne/_version.py').read(); print(re.search(r'__version__\s*=\s*[\'\"]([^\'\"]+)[\'\"], f).group(1))")
VERSION=$(python -c "import re; f=open('vne/_version.py').read(); print(re.search(r'__version__\s*=\s*[\'\"]([^\'\"]+)[\'\"]', f).group(1))")
Copy link

Copilot AI Aug 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The regex pattern has an unescaped closing parenthesis that could cause issues. The pattern should escape the closing parenthesis in the character class: [^'"]+ should be [^'"\)]+ if you want to exclude closing parentheses, or the pattern needs better structure to handle edge cases in version strings.

Suggested change
VERSION=$(python -c "import re; f=open('vne/_version.py').read(); print(re.search(r'__version__\s*=\s*[\'\"]([^\'\"]+)[\'\"]', f).group(1))")
VERSION=$(python -c "import re; f=open('vne/_version.py').read(); print(re.search(r'__version__\s*=\s*[\'\"]([^\'\"\)]+)[\'\"]', f).group(1))")

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants