1234567891011121314151617181920212223 |
- import { exists } from './misc'
- function isValidRSSFeed (value: string) {
- if (!exists(value)) return false
- const feedExtensions = [
- 'xml',
- 'json',
- 'json1',
- 'rss',
- 'rss2',
- 'atom',
- 'atom1'
- ]
- return feedExtensions.indexOf(value) !== -1
- }
- // ---------------------------------------------------------------------------
- export {
- isValidRSSFeed
- }
|