Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajout de son nom de naissance #7

Merged
merged 4 commits into from
Jun 21, 2018
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion js/correct.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ while(textNode=walk.nextNode()) {
'Monsieur le Président de la République|'+
'Monsieur le Président|'+
'Président de la République française|'+
'Président de la République', 'gi')
'Président de la République' +

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il manque le pipe final pour signifier les différentes options, de même qu'a la ligne suivante pour le nom complet de Manu.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est exact, oubli de ma part. C'est corrigé.

'Emmanuel Jean-Michel Frédéric Macron',
'M. Macron', 'gi');

textNode.nodeValue = textNode.nodeValue.replace(rExp, 'Manu')
}