1// Renseigner cette URL uniquement après certification et publication dans le 2// Microsoft Store. Tant quâelle est vide, aucun bouton de téléchargement nâest 3// rendu dans le menu utilisateur. 4export const WINDOWS_STORE_URL = ''; 5 6export function getWindowsStoreUrl(value = WINDOWS_STORE_URL) { 7 if (typeof value !== 'string' || !value.trim()) return null; 8 9 try { 10 const url = new URL(value.trim()); 11 if (url.protocol !== 'https:' 12 || url.hostname !== 'apps.microsoft.com' 13 || url.port 14 || url.username 15 || url.password 16 || !/^\/detail\/.+/i.test(url.pathname)) { 17 return null; 18 } 19 return url.href; 20 } catch (_error) { 21 return null; 22 } 23}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.