-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use no-break space (U+00A0) after periods in author names and other contexts where a period is located within a sentence and should be followed by a space.
- Loading branch information
Showing
6 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# | ||
# Detect lines that contain more than one sentence. | ||
# | ||
# We use a regular expression to identify lines that satisfy the following: | ||
# | ||
# 1. They contain at least one letter ('.*[A-Za-z].*'), to ignore numbered | ||
# list items; | ||
# | ||
# 2. They contain a literal period that is not preceded by a literal period | ||
# ('[^.]\.'), to ignore ellipses ('...'); | ||
# | ||
# 3. The literal period is followed by a regular space ('\. '), to ignore | ||
# inline periods in common abbreviations (such as 'e.g.,' and 'i.e.,') and | ||
# in author names where non-breaking spaces should be used to separate | ||
# initials (e.g., 'Jesse M. Alston' rather than 'Jesse M. Alston'). | ||
# | ||
grep --recursive --include='*.md' '^.*[A-Za-z].*[^.]\. ' docs/ && exit 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters