Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
末尾に空文字列がある場合、これを除去
  • Loading branch information
jun68ykt committed Aug 9, 2019
1 parent 2bde65e commit 1e2379b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Expand Up @@ -12,7 +12,7 @@ document.addEventListener('DOMContentLoaded', function() {

//テキストエリアに表示
document.test.txt.value = reader.result.toLowerCase();
var result2=reader.result.toLowerCase().split("\n");
var result2=reader.result.toLowerCase().split("\n").filter(str => str);

var result3=[];
for (var i = 0; i <result2.length; i++) {
Expand Down
Empty file added test01.js
Empty file.
Empty file added test02.js
Empty file.
Empty file added test03.js
Empty file.

0 comments on commit 1e2379b

Please sign in to comment.