Update RegEx text replacement 1.yml

This commit is contained in:
Imre Eilertsen
2024-06-12 16:22:15 +02:00
committed by GitHub
parent 457d761b1f
commit 5f3f3ab88e
@@ -1,4 +1,4 @@
name: RegEx text replacement (https://github.com/marketplace/actions/find-and-replace)
name: RegEx text replacement
on: [push, pull_request, discussion_comment, issue_comment, fork]
jobs:
build:
@@ -10,7 +10,7 @@ jobs:
- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "(:has-text\(/([a-zA-Z0-9øØåÅ_.;,|/{}* !?"'-]|\\){0,}([a-rt-zA-RæÆøØåÅT-Z0-9]))\3([a-zA-Z0-9æÆøØåÅñ_.;,|/{}* !"'-]|\'|"|\\)"
find: (:has-text\(/([a-zA-Z0-9øØåÅñ_.;,|/{}* !?"'-]|\\){0,}([a-rt-zA-RæÆøØåÅT-Z0-9]))$3([a-zA-Z0-9æÆøØåÅñ_.;,|/{}* !"'-]|\\)
replace: "$1{2}$4"
include: "**/a.txt"
regex: true