Skip to content

Commit e64e0c0

Browse files
File sync from bmos/fg-workflows
1 parent cdc80aa commit e64e0c0

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

.github/workflows/luacheck.yml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: ashley-taylor/regex-property-action@1.2
3333
with:
3434
value: ${{ steps.getnamefromxml.outputs.info }}
35-
regex: '[A-Za-z]+:\s'
35+
regex: '[A-Za-z]+:\s+'
3636
replacement: ''
3737

3838
- id: removeapostrophes
@@ -45,14 +45,21 @@ jobs:
4545
- id: removenamepunctuation
4646
uses: ashley-taylor/regex-property-action@1.2
4747
with:
48-
value: ${{ steps.removenameparenthetical.outputs.value }}
49-
regex: '\W.*'
48+
value: ${{ steps.removeapostrophes.outputs.value }}
49+
regex: '[^\w\s].*'
50+
replacement: ''
51+
52+
- id: removenamespaces
53+
uses: ashley-taylor/regex-property-action@1.2
54+
with:
55+
value: ${{ steps.removenamepunctuation.outputs.value }}
56+
regex: '\s'
5057
replacement: ''
5158

5259
- id: namelowercase
5360
uses: ASzc/change-string-case-action@v2
5461
with:
55-
string: ${{ steps.removenamepunctuation.outputs.value }}
62+
string: ${{ steps.removenamespaces.outputs.value }}
5663

5764
# Determine extension author
5865

@@ -71,24 +78,31 @@ jobs:
7178
regex: '[A-Za-z]+:\s'
7279
replacement: ''
7380

74-
- id: removeapostrophes
81+
- id: removeauthorapostrophes
7582
uses: ashley-taylor/regex-property-action@1.2
7683
with:
7784
value: ${{ steps.removeauthorprefix.outputs.value }}
7885
regex: "'"
7986
replacement: ''
8087

81-
- id: removenamepunctuation
88+
- id: removeauthorpunctuation
89+
uses: ashley-taylor/regex-property-action@1.2
90+
with:
91+
value: ${{ steps.removeauthorapostrophes.outputs.value }}
92+
regex: '[^\w\s].*'
93+
replacement: ''
94+
95+
- id: removeauthorspaces
8296
uses: ashley-taylor/regex-property-action@1.2
8397
with:
84-
value: ${{ steps.removeauthorparenthetical.outputs.value }}
85-
regex: '\W.*'
98+
value: ${{ steps.removeauthorpunctuation.outputs.value }}
99+
regex: '\s'
86100
replacement: ''
87101

88102
- id: authorlowercase
89103
uses: ASzc/change-string-case-action@v2
90104
with:
91-
string: ${{ steps.removeauthorpunctuation.outputs.value }}
105+
string: ${{ steps.removeauthorspaces.outputs.value }}
92106

93107
outputs:
94108
extension: ${{ steps.namelowercase.outputs.lowercase }}

0 commit comments

Comments
 (0)