use dashes instead

This commit is contained in:
Aidan 2024-12-22 17:05:59 -05:00
parent dc475f0415
commit 7512e92bd0
No known key found for this signature in database
GPG Key ID: 1773A01F0EFE4FC1
2 changed files with 7 additions and 7 deletions

2
app.js
View File

@ -73,7 +73,7 @@ app.get('/apps/:id', (req, res) => {
app.get('/download', (req, res) => { app.get('/download', (req, res) => {
const { name, type, version, arch } = req.query; const { name, type, version, arch } = req.query;
if (!validator.isAlphanumeric(name.replace(/\s/g, '')) || !validator.isAlphanumeric(type) || !validator.isAlphanumeric(version.replace(/\./g, '')) || !validator.isAlphanumeric(arch)) { if (!validator.isAlphanumeric(name.replace(/\s/g, '')) || !validator.isAlphanumeric(type) || !validator.isAlphanumeric(version.replace(/\./g, '')) || !/^[a-zA-Z0-9-]+$/.test(arch)) {
return res.status(400).send('Invalid input, mister!'); return res.status(400).send('Invalid input, mister!');
} }
fs.readFile(`${type}s.json`, (err, data) => { fs.readFile(`${type}s.json`, (err, data) => {

View File

@ -302,18 +302,18 @@
"selfHosted": false, "selfHosted": false,
"downloadLinks": { "downloadLinks": {
"v8.8.0": { "v8.8.0": {
"arm64.v8a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.8.0/Cherrygram-8.8.0-TG-11.5.3-arm64-v8a.apk", "arm64-v8a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.8.0/Cherrygram-8.8.0-TG-11.5.3-arm64-v8a.apk",
"armeabi.v7a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.8.0/Cherrygram-8.8.0-TG-11.5.3-armeabi-v7a.apk", "armeabi-v7a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.8.0/Cherrygram-8.8.0-TG-11.5.3-armeabi-v7a.apk",
"universal": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.8.0/Cherrygram-8.8.0-TG-11.5.3-universal.apk" "universal": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.8.0/Cherrygram-8.8.0-TG-11.5.3-universal.apk"
}, },
"v8.7.0": { "v8.7.0": {
"arm64.v8a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.7.0/Cherrygram-8.7.0-TG-11.2.3-arm64-v8a.apk", "arm64-v8a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.7.0/Cherrygram-8.7.0-TG-11.2.3-arm64-v8a.apk",
"armeabi.v7a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.7.0/Cherrygram-8.7.0-TG-11.2.3-armeabi-v7a.apk", "armeabi-v7a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.7.0/Cherrygram-8.7.0-TG-11.2.3-armeabi-v7a.apk",
"universal": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.7.0/Cherrygram-8.7.0-TG-11.2.3-universal.apk" "universal": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.7.0/Cherrygram-8.7.0-TG-11.2.3-universal.apk"
}, },
"v8.6.0": { "v8.6.0": {
"arm64.v8a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.6.0/Cherrygram-8.6.0-TG-11.1.3-arm64-v8a.apk", "arm64-v8a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.6.0/Cherrygram-8.6.0-TG-11.1.3-arm64-v8a.apk",
"armeabi.v7a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.6.0/Cherrygram-8.6.0-TG-11.1.3-armeabi-v7a.apk", "armeabi-v7a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.6.0/Cherrygram-8.6.0-TG-11.1.3-armeabi-v7a.apk",
"universal": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.6.0/Cherrygram-8.6.0-TG-11.1.3-universal.apk" "universal": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.6.0/Cherrygram-8.6.0-TG-11.1.3-universal.apk"
} }
}, },