From b5b2dad8c7e9c6ca9c3bea50ae6bd1e020e8da4f Mon Sep 17 00:00:00 2001 From: Imre Eilertsen Date: Wed, 12 Jun 2024 17:22:51 +0200 Subject: [PATCH] GitHub YAML's RegEx matching is ungodly broken Why do I even bother? --- .github/workflows/RegEx text replacement 1.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/RegEx text replacement 1.yml b/.github/workflows/RegEx text replacement 1.yml index 2586bb830..840ecf138 100644 --- a/.github/workflows/RegEx text replacement 1.yml +++ b/.github/workflows/RegEx text replacement 1.yml @@ -10,8 +10,8 @@ jobs: - name: Find and Replace uses: jacobtomlinson/gha-find-replace@v3 with: - find: "((/.*([a-rt-zA-RT-Z0-9]))$2([^?].*/i)" - replace: "$1{2}$3" + find: "((/.*)([a-zA-Z])$2([a-zA-Z0-9|/-])" + replace: "$1$2{2}$3" regex: true - name: Push changes uses: stefanzweifel/git-auto-commit-action@v5