Skip to content

Commit 98e1750

Browse files
author
Eric Elliott
committed
Merge pull request #6 from rsperberg/master
handle all Irish O'x names, not just O'Reilly
2 parents 6724db4 + 65d4e19 commit 98e1750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/cleanup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var replacements = [
2222
{ searchFor: /'t\b/g, replaceWith: "’t"}, // don't
2323
{ searchFor: /'ve\b/g, replaceWith: "’ve"}, // I've
2424
{ searchFor: /(\s)'(\d\ds)/g, replaceWith: "$1’$2"}, // ’90s
25-
{ searchFor: /O'R/g, replaceWith: "O’R"}, // O'Reilly
25+
{ searchFor: /O'([A-Z])/g, replaceWith: "O’$1"}, // O'Reilly
2626
{ searchFor: /",/g, replaceWith: ',”'}, // comma outside quote mark
2727
{ searchFor: /"\./g, replaceWith: '.”'}, // period outside quote mark (transpose only)
2828
{ searchFor: /"\b/g, replaceWith: '“'}, // open quote (eg, precedes a 'word boundary')

0 commit comments

Comments
 (0)