You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Corrected awk regular expressions in the deploy-to-wporg GitHub Actions workflow to remove unnecessary backslashes and ensure proper matching and replacement of PHP code patterns.
Copy file name to clipboardExpand all lines: .github/workflows/deploy-to-wporg.yml
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -192,21 +192,21 @@ jobs:
192
192
BEGIN { changed=0 }
193
193
{
194
194
line=$0
195
-
if (line ~ /protected[[:space:]]*\(NodeDefinition[[:space:]]*\&[[:space:]]*ParentNodeDefinitionInterface\)[[:space:]]*\|[[:space:]]*null[[:space:]]*\$parent[[:space:]]*=.*/) {
195
+
if (line ~ /protected[[:space:]]*\(NodeDefinition[[:space:]]*&[[:space:]]*ParentNodeDefinitionInterface\)[[:space:]]*\|[[:space:]]*null[[:space:]]*\$parent[[:space:]]*=.*/) {
196
196
ind=indent_of(line)
197
-
line=ind "protected \\$parent = null;"
197
+
line=ind "protected $parent = null;"
198
198
print line
199
199
changed=1
200
200
next
201
201
}
202
-
if (line ~ /public[[:space:]]+function[[:space:]]+setParent\(\(NodeDefinition[[:space:]]*\&[[:space:]]*ParentNodeDefinitionInterface\)[[:space:]]*\|[[:space:]]*null[[:space:]]*\$parent\)[[:space:]]*:[[:space:]]*static/) {
202
+
if (line ~ /public[[:space:]]+function[[:space:]]+setParent\(\(NodeDefinition[[:space:]]*&[[:space:]]*ParentNodeDefinitionInterface\)[[:space:]]*\|[[:space:]]*null[[:space:]]*\$parent\)[[:space:]]*:[[:space:]]*static/) {
203
203
ind=indent_of(line)
204
-
line=ind "public function setParent(\\$parent): static"
204
+
line=ind "public function setParent($parent): static"
205
205
print line
206
206
changed=1
207
207
next
208
208
}
209
-
if (line ~ /public[[:space:]]+function[[:space:]]+end\(\)[[:space:]]*:[[:space:]]*NodeDefinition[[:space:]]*\&[[:space:]]*ParentNodeDefinitionInterface/) {
209
+
if (line ~ /public[[:space:]]+function[[:space:]]+end\(\)[[:space:]]*:[[:space:]]*NodeDefinition[[:space:]]*&[[:space:]]*ParentNodeDefinitionInterface/) {
0 commit comments