Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo-Duke committed Jun 21, 2018
2 parents afd1d47 + 52a0068 commit 776aef7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions js/correct.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
var textNode, walk=document.createTreeWalker(document,NodeFilter.SHOW_TEXT,null,false);
while(textNode=walk.nextNode()) {
textNode.nodeValue = textNode.nodeValue
var textNode,
walk = document.createTreeWalker(document, NodeFilter.SHOW_TEXT, null, false)
while ((textNode = walk.nextNode())) {
textNode.nodeValue = textNode.nodeValue
.replace(/d'Emmanuel Macron/gi, 'de Manu')
.replace(/Emmanuel Macron/gi, 'Manu')
.replace(/le Président de la République/gi, 'Manu')
.replace(/Monsieur le Président/gi, 'Manu')
.replace(/EmmanuelMacron/gi, 'Manu')
.replace(/M\. Macron/gi, 'Manu')
.replace(/Président Macron/gi, 'Manu')
.replace(/Emmanuel et Brigitte Macron/gi, 'Manu et Brigitte')
}

0 comments on commit 776aef7

Please sign in to comment.