Skip to content

Commit c70eb2a

Browse files
honzajavorekpatrikbraborec
authored andcommitted
refactor: simplify how capitalization works (#1895)
Attempt to help @TC-MO to break down #1890 to smaller self-contained pieces.
1 parent 89c2889 commit c70eb2a

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

.github/styles/Apify/Capitalization.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,5 @@ message: "The word '%s' should always be capitalized."
33
ignorecase: false
44
level: error
55
tokens:
6-
# Before the word there should be no: /, -, #, word character
7-
# (avoids anchors, URLs, identifiers, and words like 'factors')
8-
#
9-
# After the word there should be no: /, } (avoids paths or URLs)
10-
# Also no . followed by a word character (avoids 'actors.md')
11-
- '(?<![\/\-#\w])actors(?![\/\}])(?!\.\w)'
12-
13-
# Before the word there should be no: /, -, #, ., `, word character
14-
# (avoids anchors, URLs, identifiers, code, and words like 'factors')
15-
#
16-
# After the word there should be no: /, }, -, word character (avoids paths or URLs)
17-
# Also no " =" (avoids code like "actor = ...")
18-
# Also no . followed by a word character (avoids 'actor.md' or 'actor.update()')
19-
- '(?<![\/\-#\.`\w])actor(?![\/\}\-\w])(?! =)(?!\.\w)'
20-
nonword: false
6+
- '\bactor\b'
7+
- '\bactors\b'

0 commit comments

Comments
 (0)