은승우

Update app.js

Showing 1 changed file with 3 additions and 3 deletions
...@@ -109,10 +109,10 @@ async function handleEvent(event) { ...@@ -109,10 +109,10 @@ async function handleEvent(event) {
109 } 109 }
110 110
111 text.replace('\n',''); 111 text.replace('\n','');
112 - /*if(text.length>20) 112 + if(text.length>20)
113 { 113 {
114 - text=text.substring(8,20); 114 + text=text.substring(text.length/6,text.length/4);
115 - }*/ 115 + }
116 console.log(text); 116 console.log(text);
117 var url="https://www.genie.co.kr/search/searchLyrics?query="+ encodeURI(text); 117 var url="https://www.genie.co.kr/search/searchLyrics?query="+ encodeURI(text);
118 request(url, function(error, response, html){ 118 request(url, function(error, response, html){
......