@@ -18,6 +18,7 @@ var replacements = [
18
18
{ searchFor : / ' m \b / g, replaceWith : "’m" } , // I'm
19
19
{ searchFor : / ' r e \b / g, replaceWith : "’re" } , // you're
20
20
{ searchFor : / ' s \b / g, replaceWith : "’s" } , // it's
21
+ { searchFor : / s ' ( \s ) / g, replaceWith : "s’$1" } , // plural possessive
21
22
{ searchFor : / ' t \b / g, replaceWith : "’t" } , // don't
22
23
{ searchFor : / ' v e \b / g, replaceWith : "’ve" } , // I've
23
24
{ searchFor : / ( \s ) ' ( \d \d s ) / g, replaceWith : "$1’$2" } , // ’90s
@@ -26,7 +27,7 @@ var replacements = [
26
27
{ searchFor : / " \. / g, replaceWith : '.”' } , // period outside quote mark (transpose only)
27
28
{ searchFor : / " \b / g, replaceWith : '“' } , // open quote (eg, precedes a 'word boundary')
28
29
{ searchFor : / \b " / g, replaceWith : '”' } , // close quote (eg, is preceded by a 'word boundary') needs to be set to follow punctuation as well
29
- { searchFor : / - / g, replaceWith : " — " } // em dash
30
+ { searchFor : / - / g, replaceWith : " — " } // em dash with spaces surrounding it
30
31
] ;
31
32
// using package.json script: cleanup to read README.md via cat
32
33
var aFile = fs . readFile ( '/dev/stdin' , 'utf8' , function ( err , data ) {
0 commit comments