aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/feeds.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/custom-validators/feeds.ts')
-rw-r--r--server/helpers/custom-validators/feeds.ts23
1 files changed, 0 insertions, 23 deletions
diff --git a/server/helpers/custom-validators/feeds.ts b/server/helpers/custom-validators/feeds.ts
deleted file mode 100644
index fa35a7da6..000000000
--- a/server/helpers/custom-validators/feeds.ts
+++ /dev/null
@@ -1,23 +0,0 @@
1import { exists } from './misc'
2
3function isValidRSSFeed (value: string) {
4 if (!exists(value)) return false
5
6 const feedExtensions = [
7 'xml',
8 'json',
9 'json1',
10 'rss',
11 'rss2',
12 'atom',
13 'atom1'
14 ]
15
16 return feedExtensions.includes(value)
17}
18
19// ---------------------------------------------------------------------------
20
21export {
22 isValidRSSFeed
23}