Skip to content

Commit 26ef661

Browse files
committed
Improve an
1 parent fa51c5c commit 26ef661

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/actions/spelling/line_forbidden.patterns

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
\b[Pp]lease(?:, do|) also\b
169169

170170
# Should be `an`
171-
(?<!(?:\b[Ii]|and|but|Frankfurt|git) )(?<![-.])(?<!\d\s?)\bam\b(?!/pm|[-:")]| I\b)
171+
(?<!(?:\b[Ii]|and|but|Frankfurt|git|\W) )(?<![-.])(?<!\d\s?)\bam\b(?!/pm|[-:")]| I\b)
172172

173173
# Should be `an`
174174
(?<=\s)a(?= (?:a(?!nd\s|s\s)|e(?!u)|i(?![ns]\s)|o(?!f\b|nc?e)|u(?!\d|biquitous|int|kr|n[ai]|r[ael]|ri\b|s[aeiu]|tf\d*|til|topia|uid|vula|v\b)|y(?!aml|arn|e|ie|oga|oung|y)))

0 commit comments

Comments
 (0)