Comments (1)
I think I found the problem on line 42 of index.jsx
which was updated 4 months ago in the Add google API check
update.
New RegEx:
/^(\S+:\/\/)[a-zA-Z0-9]+([\-\.]{1}[a-zA-Z0-9]+)*\.[a-zA-Z]{2,16}(:[0-9]{1,5})?(\/.*)?$/
Old RegEx:
/(magnet:\?xt=urn:btih:[a-zA-Z0-9]*)|(^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-zA-Z0-9]+([\-\.]{1}[a-zA-Z0-9]+)*\.[a-zA-Z]{2,8}(:[0-9]{1,5})?(\/.*)?$)/
This link passes the Old Regex: magnet:?xt=urn:btih:600c0f4df16256c410ab85adcb2c4011e0394b61&dn=Star%20Wars%20IV%20Despecialized%20Edition%20v2.7%20AVCHD%20ISO&tr=udp%3A%2F%2Fopen.demonii.com%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.tiny-vps.com%3A6969%2Fannounce&tr=http%3A%2F%2Ftracker.gbitt.info%3A80%2Fannounce&tr=http%3A%2F%2Ftracker.renfei.net%3A8080%2Fannounce&tr=udp%3A%2F%2Ftracker-udp.gbitt.info%3A80%2Fannounce&tr=udp%3A%2F%2Fopen.free-tracker.ga%3A6969%2Fannounce&tr=udp%3A%2F%2Fnew-line.net%3A6969%2Fannounce&tr=udp%3A%2F%2Fmoonburrow.club%3A6969%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=https%3A%2F%2Ftracker.tamersunion.org%3A443%2Fannounce&tr=https%3A%2F%2Ftracker.renfei.net%3A443%2Fannounce&tr=https%3A%2F%2Ftracker.gbitt.info%3A443%2Fannounce&tr=udp%3A%2F%2Ftracker.0x7c0.com%3A6969%2Fannounce&tr=udp%3A%2F%2Foh.fuuuuuck.com%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.dump.cl%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.bittor.pw%3A1337%2Fannounce&tr=udp%3A%2F%2Fopentracker.io%3A6969%2Fannounce&tr=udp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce
But I can't find ANY way to get ANY magnet link to pass the new RegEx.
Notably, even with the Old RegEx, magnet links do NOT pass if formatted as magnet://
and need the slashes removed so the warning from my original image should also be updated to read Please make sure your link starts with 'http://' or 'https://' or 'magnet:'
(or you could update the RegEx to support magnet://
)
from maglit.
Related Issues (20)
- Where is `.ENV.LOCAL_EXAMPLE` file? HOT 2
- [Suggestion] Add a way to donate in crypto HOT 1
- API security & bugfix revamp - Fix serverless execution
- Is there an Official Docker Image? HOT 4
- How do you remove links/change the custom url? HOT 4
- Support self-hosted use-case using sqlite HOT 1
- Tutorial / Docker image? HOT 10
- NEXT_PUBLIC_BASE_URL needs to be loaded after build HOT 1
- Firestore connection error: INVALID_ARGUMENT HOT 1
- Database Error HOT 1
- Unable to Install PWA on Desktop HOT 1
- How long the shorten link work? HOT 3
- Domain gets blocked by quad9.net DNS HOT 1
- noticed this past week or so HOT 6
- Allow TLDs with more than 8 chars. HOT 2
- `API not available` for the past few days HOT 1
- when deploying over netlify it doesnt respond
- Add button to copy old links without having to write them out HOT 2
- I can't connect to the server when I'm using a VPN HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maglit.