Fix regex character class in version escaping

Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-09 01:20:41 +00:00
parent 1ee2b16c7b
commit 91b2c643d2
4 changed files with 5 additions and 4 deletions

View File

@@ -21,7 +21,7 @@
# Changelog — Moko-Cassiopeia (VERSION: 03.05.00)
## [03.05.00] 2026-01-04
## [03.05.00] 2026-01-09
- Created `.github/workflows`
- Replaced `./CODE_OF_CONDUCT.md` from `MokoStandards`
- Replaced `./CONTRIBUTING.md` from `MokoStandards`

View File

@@ -42,7 +42,8 @@ echo "TODAY: ${TODAY}"
echo "VERSION: ${VERSION}"
# Escape special regex characters in VERSION for safe use in grep and sed
VERSION_ESCAPED=$(printf '%s\n' "${VERSION}" | sed 's/[]\/$*.^[]/\\&/g')
# Escapes: ] \ / $ * . ^ [
VERSION_ESCAPED=$(printf '%s\n' "${VERSION}" | sed 's/[][\/$*.^]/\\&/g')
# Update CHANGELOG.md - replace the date on the version heading line
if [ -f "CHANGELOG.md" ]; then

View File

@@ -35,7 +35,7 @@
</updateservers>
<name>moko-cassiopeia</name>
<version>03.05.00</version>
<creationDate>2025-12-23</creationDate>
<creationDate>2026-01-09</creationDate>
<author>Jonathan Miller || Moko Consulting</author>
<authorEmail>hello@mokoconsulting.tech</authorEmail>
<copyright>(C)GNU General Public License Version 3 - 2025 Moko Consulting</copyright>

View File

@@ -30,7 +30,7 @@
<client>site</client>
<version>03.05.00</version>
<creationDate>2025-12-12</creationDate>
<creationDate>2026-01-09</creationDate>
<author>Jonathan Miller || Moko Consulting</author>
<authorEmail>hello@mokoconsulting.tech</authorEmail>
<copyright>(C)GNU General Public License Version 3 - 2025 Moko Consulting</copyright>