6de2455917
- Added GLOBAL_MARKETS_TITLE to all translation files - Updated footer with 12 markets (4 active + 8 upcoming) - Translated market section to: zh-cn, zh-tw, ja, ko, th, vi, id, ms, hi - Built and deployed to production - CloudFront invalidation: I3RTMXVFDJXWLG3SYX208OP1CC
9 lines
404 B
JavaScript
9 lines
404 B
JavaScript
import assertString from './util/assertString';
|
|
var magnetURIComponent = /(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;
|
|
export default function isMagnetURI(url) {
|
|
assertString(url);
|
|
if (url.indexOf('magnet:?') !== 0) {
|
|
return false;
|
|
}
|
|
return magnetURIComponent.test(url);
|
|
} |