Skip to content

Commit

Permalink
Replaced replaceAll() with replace()
Browse files Browse the repository at this point in the history
  • Loading branch information
therealsujitk committed Mar 5, 2021
1 parent e7e47c4 commit 05fff0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/tk/therealsuji/vtopchennai/VTOP.java
Original file line number Diff line number Diff line change
Expand Up @@ -2676,7 +2676,7 @@ public void downloadSpotlight() {
" if(category.toLowerCase().includes('finance')) {" +
" category = 'Others';" +
" } else {" +
" category = category.trim().replaceAll('\\t','').replaceAll('\\n','');" +
" category = category.trim().replace(/\\t/g,'').replace(/\\n/g,'');" +
" category = category.substring(0, category.length - 9).trim();" +
" }" +
" var announcements = modals[i].getElementsByTagName('li');" +
Expand All @@ -2685,7 +2685,7 @@ public void downloadSpotlight() {
" }" +
" var temp = {};" +
" for(var j = 0; j < announcements.length; ++j) {" +
" temp[j + 'announcement'] = announcements[j].innerText.trim().replaceAll('\\t','').replaceAll('\\n',' ');" +
" temp[j + 'announcement'] = announcements[j].innerText.trim().replace(/\\t/g,'').replace(/\\n/g,' ');" +
" if(!announcements[j].getElementsByTagName('a').length) {" +
" temp[j + 'link'] = 'null';" +
" } else {" +
Expand Down

0 comments on commit 05fff0c

Please sign in to comment.