Skip to content

Commit

Permalink
Fix FirstPerson.yml
Browse files Browse the repository at this point in the history
We can't rely on word boundaries for finding instances of "I" because
things like "i.e." will trigger matches.
  • Loading branch information
jdkato committed Mar 30, 2019
1 parent e069db8 commit aae6929
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Microsoft/FirstPerson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ message: "Use first person sparingly ('%s')."
link: 'https://docs.microsoft.com/en-us/style-guide/grammar/person'
ignorecase: true
level: warning
nonword: true
tokens:
- I
- me
- (?:I\s|\bme\b)
2 changes: 2 additions & 0 deletions fixtures/Terms/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ I did that too. There was adequate number of people.

Did you ensure that it works?

This is a word -- i.e., something else.


0 comments on commit aae6929

Please sign in to comment.