Skip to content

Commit

Permalink
Fix Issue #21: words often include symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
kerrishotts committed Mar 14, 2012
1 parent 8eb11c9 commit b0bd9a2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions www/bible.html
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,26 @@
}
////console.log (theWord);
////console.log (whichSide);
// strip symbols from theWord
if (theWord) // FIX ISSUE #21
{
theWord = theWord.replace (",", "");
theWord = theWord.replace (";", "");
theWord = theWord.replace (".", "");
theWord = theWord.replace (":", "");
theWord = theWord.replace ("/", "");
theWord = theWord.replace ("?", "");
theWord = theWord.replace ("'", "");
theWord = theWord.replace ('"', "");
theWord = theWord.replace ("“", "");
theWord = theWord.replace ("”", "");
theWord = theWord.replace ("‘", "");
theWord = theWord.replace ("’", "");
theWord = theWord.replace ("-", "");
theWord = theWord.replace ("–", "");
theWord = theWord.replace ("`", "");
theWord = theWord.trim();
}

var numSelected = 0;
var numBookmarked = 0;
Expand Down

0 comments on commit b0bd9a2

Please sign in to comment.