Skip to content

Commit

Permalink
Tweak regular expression for determiner detecting
Browse files Browse the repository at this point in the history
  • Loading branch information
suchow committed Jan 27, 2015
1 parent 56e647b commit cbc155b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proselint/checks/mau_a_vs_an.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def starts_with_vowel_sound(word):
return None

errors = []
regex = re.compile("(^|\s+)(A|a|An|an)\s(\S*)\W")
regex = re.compile("(?:^|\W)(an?)\s+(\w+)", re.IGNORECASE)

# Find all occurences of the regex in the text.
for m in regex.finditer(text):
Expand Down

0 comments on commit cbc155b

Please sign in to comment.