Add files via upload

This commit is contained in:
lingeringsound 2024-10-02 11:23:31 +08:00 committed by GitHub
parent 6150abe77a
commit a95cc17981
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -431,14 +431,16 @@ function fixed_Rules_error(){
-e 's/([^#])[[:cntrl:][:space:]./$]##/\1##/g' \
-e 's/([^#])##[[:cntrl:][:space:]/$]/\1##/g' \
-e 's/###[[:cntrl:][:space:].#/$]/###/g' \
-e 's/##([^\#][[:digit:]])/##\\\1/g' \
-e 's/##([[:digit:]]+)/##\\\1/g' \
-e 's/##\.\[/##\[/g' \
-e 's/^##[[:cntrl:][:space:]/$]/##/g' \
-e 's/[[:space:]]\|/\|/g' \
-e 's/\|[[:space:]]/\|/g' \
-e 's/([^:])\:(after|before)/\1\:\:\2/g' "${file}"
#sed -i -E -e 's/(\[[:alpha:]|[\*\^\$])=([^"]*)(\])/\1="\2"\3/g' \
# -e 's/(\[[:alpha:]|[\*\^\$]=\")([^"]*)\]/\1\2\"\]/g' \
# -e 's/(\[[:alpha:]|[\*\^\$])=([^"]*)(\"\])/\1="\2\3/g' "${file}"
gawk -i inplace '{ while (match($0, /^##[A-Z]+\[/)) { $0 = substr($0, 1, RSTART-1) tolower(substr($0, RSTART, RLENGTH)) substr($0, RSTART+RLENGTH) } print }' "${file}"
}
#更新README信息