From 05fff0c34cccaade8f41ce861f2bd55862f4d982 Mon Sep 17 00:00:00 2001 From: Sujit Kumar Date: Fri, 5 Mar 2021 15:30:39 +0530 Subject: [PATCH] Replaced replaceAll() with replace() --- app/src/main/java/tk/therealsuji/vtopchennai/VTOP.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/tk/therealsuji/vtopchennai/VTOP.java b/app/src/main/java/tk/therealsuji/vtopchennai/VTOP.java index 802dc644..c9908919 100644 --- a/app/src/main/java/tk/therealsuji/vtopchennai/VTOP.java +++ b/app/src/main/java/tk/therealsuji/vtopchennai/VTOP.java @@ -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');" + @@ -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 {" +