fix: allow file:// protocol for epg source

This commit is contained in:
4gray committed 2022-10-01 19:50:49 +02:00
1 parent 9756a76a90
commit c4e107681e
1 file changed
+1 -1
+1 -1
View File
@@ -129,7 +129,7 @@ export class SettingsComponent implements OnInit {
* @param epgUrls urls of the EPG sources
*/
setEpgUrls(epgUrls: string[] | string): void {
const URL_REGEX = /^(http|https):\/\/[^ "]+$/;
const URL_REGEX = /^(http|https|file):\/\/[^ "]+$/;
if (!Array.isArray(epgUrls)) {
epgUrls = [epgUrls];