JWT Autorization / Logging in and registering
This commit is contained in:
6
node_modules/validator/es/lib/isMagnetURI.js
generated
vendored
Normal file
6
node_modules/validator/es/lib/isMagnetURI.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import assertString from './util/assertString';
|
||||
var magnetURI = /^magnet:\?xt=urn:[a-z0-9]+:[a-z0-9]{32,40}&dn=.+&tr=.+$/i;
|
||||
export default function isMagnetURI(url) {
|
||||
assertString(url);
|
||||
return magnetURI.test(url.trim());
|
||||
}
|
||||
Reference in New Issue
Block a user