Skip to content

Commit aa42846

Browse files
committed
remove unneeded variables
1 parent 58e5447 commit aa42846

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

scripts/cleanup.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,7 @@ files I'm testing with
2424

2525
// identify each type of change, particularly for the apostrophe, since global change (e.g., /.'./g or /(\w|\d)'(\w|\d)/g) is just too risky
2626
// By making only known changes, stray apostrophes and quotes can be located easily
27-
var aposD = /'d\b/g; // I'd
28-
var aposLl = /'ll\b/g; // you'll
29-
var aposM = /'m\b/g; // I'm
30-
var aposRe = /'re\b/g; // you're
31-
var aposS = /'s\b/g; // it's
32-
var aposT = /'t\b/g; // don't
33-
var aposVe = /'ve\b/g; // I've
34-
var oAposR = /O'R/g; // O'Reilly
35-
var spaceQuot = / "\b/g; // open quote (eg, precedes a 'word boundary')
36-
var quotSpace = /\b"/g; // close quote (eg, is preceded by a 'word boundary')
37-
var spaceDashSpace = / - /g; // em dash
3827
// not yet defined: single quotes within double quotes
39-
// var spaceApos = / '/
40-
// var aposSpace = /' /
41-
42-
// identify the replacements for each change above
43-
var rsqD = "’d";
44-
var rsqLl = "’ll";
45-
var rsqM = "’m";
46-
var rsqRe = "’re";
47-
var rsqS = "’s";
48-
var rsqT = "’t";
49-
var rsqVe = "’ve";
50-
var OrsqR = "O’R";
51-
var spaceLdq = ' “';
52-
var rdqSpace = '”';
53-
var spaceEmDashSpace = " — ";
5428

5529
var replacements = [
5630
{ searchFor: /'d\b/g, replaceWith: "’d"}, // I'd

0 commit comments

Comments
 (0)