Skip to content

Commit

Permalink
Update chatlog-parser.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ulasbayraktar committed Jun 22, 2024
1 parent 2ebbefb commit 97964e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/chatlog-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ $(document).ready(function() {

navigator.userAgent.indexOf("Chrome") != -1 && $(this).append(" ⠀");


formattedText.toLowerCase().indexOf("*") >= 0 && $(this).addClass("me");

formattedText.toLowerCase().indexOf(" says:") >= 0 && $(this).addClass("white");
Expand All @@ -49,9 +48,12 @@ $(document).ready(function() {
formattedText.toLowerCase().indexOf(":o<") >= 0 && $(this).addClass("whisper");
formattedText.toLowerCase().indexOf(" (phone - low)") >= 0 && $(this).addClass("whisper");

formattedText.toLowerCase().indexOf(" [san interview]") == 0 && $(this).addClass("news");
formattedText.toLowerCase().indexOf("[san interview]") == 0 && $(this).addClass("news");
formattedText.toLowerCase().indexOf(" **[ch:") == 0 && $(this).addClass("radio");
formattedText.toLowerCase().indexOf("**[ch:") == 0 && $(this).addClass("radio");

formattedText.toLowerCase().startsWith(" ** [") && formattedText.toLowerCase().includes("]") && /\[.*?\]/.test(formattedText) && $(this).addClass("dep");
formattedText.toLowerCase().startsWith("** [") && formattedText.toLowerCase().includes("]") && /\[.*?\]/.test(formattedText) && $(this).addClass("dep");


Expand Down

0 comments on commit 97964e0

Please sign in to comment.