Skip to content

Commit 87274a2

Browse files
Update xmltv.ts
Fixed typographic error with bracket
1 parent 8457ea1 commit 87274a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xmltv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export function buildProgramsXml(data: GridApiResponse): string {
8080

8181
if (event.filter && event.filter.length > 0) {
8282
for (let i = 0; i < event.filter.length; i++) {
83-
const category = event.filter[i].match(/^(filter)-(.*?)$/);
83+
const category = event.filter(i).match(/^(filter)-(.*?)$/);
8484
if (category) {
8585
xml += ` <category lang="en">${category[2]}</category>`;
8686
}

0 commit comments

Comments
 (0)