Skip to content

Commit

Permalink
- Fix day order match bug
Browse files Browse the repository at this point in the history
  • Loading branch information
PardhavMaradani committed Nov 19, 2024
1 parent 5dd9a3b commit c382570
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions content-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,9 @@ function generateTTEventsAndExport(semester, courses, tt, ac) {
let dayEvents = tt[weekday];
if (dayEvents.length == 0) {
// Check for any other weekday order
const i = detail.indexOf(' Day Order');
if (i != -1) {
weekday = detail.substring(1, i).substring(0, 3).toUpperCase();
const m = detail.match(/(\w+) Day Order/);
if (m) {
weekday = m[1].substring(0, 3).toUpperCase();
dayEvents = tt[weekday];
}
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "VIT Timetable Export",
"version": "1.7",
"version": "1.8",
"description": "Export VIT Timetables as iCalendar (.ics) File",
"permissions": ["contextMenus", "scripting", "activeTab"],
"background": {
Expand Down

0 comments on commit c382570

Please sign in to comment.