Skip to content

Commit

Permalink
N'ajoute pas de majuscules qd on créé une note
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-perso committed Oct 5, 2023
1 parent 62a078c commit fd37c37
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,6 @@ function addNote(){
if(file && content) content = content.replace(`\n\n${decodeURIComponent(file)}`, "")
if(content) content = content.trim()

// Si le premier caractère dans le contenu est une lettre de l'alphabet, on met une majuscule
if(content && content[0].match(/[a-z]/i)) content = content[0].toUpperCase() + content.substring(1)

// On envoie les données
var newNote = electronIpc.sendSync("add-note", matiere, content, file)
parseNotes(newNote)
Expand Down

0 comments on commit fd37c37

Please sign in to comment.