Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/problem when version files contains many occurrences #30

Merged

Conversation

sergiotejon
Copy link
Contributor

No description provided.

…or a literal

Change: 'isARegExp' function added to check if a given string is a regular expression or a literal
Use 'isARegExp' function instead of hardcoding the regular expression in 'updateVersionOfFiles'
The function compiles the regular expression and checks for special regex characters
Change the 'version_files' array in 'package.json' to include a new entry for 'other-version.txt'.
Update the regular expression to correctly match the version number in the file.
@sergiotejon sergiotejon self-assigned this Aug 30, 2024
@jaimeph jaimeph linked an issue Sep 3, 2024 that may be closed by this pull request
…variable format

Change the way VersionData.updateVersionFiles handles the file format.
Instead of using a single string for both file name and substring, use a format where they are separated by a colon (:).
This allows for more flexibility in handling different file formats.
@sergiotejon sergiotejon merged commit 8007ba0 into main Sep 3, 2024
@sergiotejon sergiotejon deleted the bug/problem_when_version_files_contains_many_occurrences branch September 3, 2024 12:17
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.

Problem when version_files contains many occurrences
2 participants