mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Fix regex for parsing data
This commit is contained in:
parent
a1ca6b3335
commit
4ad07c9dd9
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ function parseStop(item) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseContent(content) {
|
function parseContent(content) {
|
||||||
const [, data] = content.match(/var pageData = ((.|[\r\n])+);\n/) || [null, null]
|
const [, data] = content.match(/var pageData = ({.+});\n/) || [null, null]
|
||||||
|
|
||||||
return data ? JSON.parse(data) : {}
|
return data ? JSON.parse(data) : {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue