You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
main
${ noResults }
24 lines
380 B
TypeScript
24 lines
380 B
TypeScript
import { exists } from './misc.js'
|
|||
|
|||
function isValidRSSFeed (value: string) {
|
|||
if (!exists(value)) return false
|
|||
|
|||
const feedExtensions = [
|
|||
'xml',
|
|||
'json',
|
|||
'json1',
|
|||
'rss',
|
|||
'rss2',
|
|||
'atom',
|
|||
'atom1'
|
|||
]
|
|||
|
|||
return feedExtensions.includes(value)
|
|||
}
|
|||
|
|||
// ---------------------------------------------------------------------------
|
|||
|
|||
export {
|
|||
isValidRSSFeed
|
|||
}
|