File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,14 +111,14 @@ function initWords() {
111111 while ( randomWord . indexOf ( ' ' ) > - 1 ) {
112112 randomWord = language [ Math . floor ( Math . random ( ) * language . length ) ] ;
113113 }
114- wordsList . push ( randomWord . toLowerCase ( ) ) ;
114+ wordsList . push ( randomWord ) ;
115115 for ( let i = 1 ; i < wordsBound ; i ++ ) {
116116 randomWord = language [ Math . floor ( Math . random ( ) * language . length ) ] ;
117117 previousWord = wordsList [ i - 1 ] ;
118118 while ( randomWord == previousWord || ( ! config . punctuation && randomWord == "I" ) || randomWord . indexOf ( ' ' ) > - 1 ) {
119119 randomWord = language [ Math . floor ( Math . random ( ) * language . length ) ] ;
120120 }
121- wordsList . push ( randomWord . toLowerCase ( ) ) ;
121+ wordsList . push ( randomWord ) ;
122122 }
123123
124124 } else if ( config . mode == "custom" ) {
@@ -180,7 +180,7 @@ function buildSentences() {
180180}
181181
182182function addWord ( ) {
183- let language = words [ config . language ]
183+ let language = words [ config . language ] ;
184184 let randomWord = language [ Math . floor ( Math . random ( ) * language . length ) ] ;
185185 while ( randomWord . indexOf ( ' ' ) > - 1 ) {
186186 randomWord = language [ Math . floor ( Math . random ( ) * language . length ) ] ;
You can’t perform that action at this time.
0 commit comments