PageSourceSearch

https://muslimskstudent.no/assets/description-LBYd-IuB.js

js muslimskstudent.no collected 2026-09-25 12:26:22 UTC 1,979 bytes, 4 lines download raw bytes

1const g="السلام عليكم ورحمة الله وبركاته",p=`${g}، {name}`,m=/\{\s*name\s*\}/i,o=/\{\s*name\s*\}/gi,h=/[^\S\n]*[،,]?[^\S\n]*\{\s*name\s*\}/gi,T=e=>m.test(String(e??""));function x(e,s){const t=String(e??""),r=u(s);return r?t.replace(o,()=>r):t.replace(h,"")}function c(e,s){const t=String(e??"").trim();if(!t)return null;const r=u(s);if(!r){const n=x(t,"").trim();return n?[{text:n}]:null}const i=[];let a=0;for(const n of t.matchAll(o))n.index>a&&i.push({text:t.slice(a,n.index)}),i.push({text:r,isName:!0}),a=n.index+n[0].length;return a<t.length&&i.push({text:t.slice(a)}),i}function _({greeting:e,body:s,name:t}={}){return e==null?N(s).greeting?c(p,t):null:c(e,t)}const S=/[ً-ْٰ]/g;function w(e){const s=String(e??"").trim();if(!s||s.length>80||s.includes(`
2`))return!1;if(/[؀-ۿ]/.test(s))return/السلام\s*عليكم/.test(s.replace(S,""));const t=s.toLowerCase().replace(/[^a-z\s]/g," ").replace(/\s+/g," ").trim();return!t||t.split(" ").length>8?!1:/^(as ?salaa?mu?|assalaa?mu?|salaa?mu?|salaam|salam)\b/.test(t)}const A=/(https?:\/\/[^\s<>]+|www\.[^\s<>]+|[^\s<>@,;:]+@[^\s<>@,;:]+\.[a-z]{2,})/gi,E=/[).,;:!?"'\]}»…]+$/;function d(e){const s=String(e??""),t=[];let r=0;for(const i of s.matchAll(A)){const n=i[0].replace(E,"");if(!n)continue;const l=i.index;l>r&&t.push({text:s.slice(r,l)});const f=/^(https?:\/\/|www\.)/i.test(n);t.push({text:n,href:f?/^www\./i.test(n)?`https://${n}`:n:`mailto:${n}`}),r=l+n.length}return r<s.length&&t.push({text:s.slice(r)}),t.length>0?t:[{text:s}]}function N(e,{detect:s=!0}={}){const t=String(e??"").replace(/\r\n?/g,`
3`).trim();if(!t)return{greeting:!1,paragraphs:[]};const r=t.split(/\n{2,}/).map(a=>a.trim()).filter(Boolean);let i=!1;return s&&r.length>0&&w(r[0])&&(i=!0,r.shift()),{greeting:i,paragraphs:r.map(a=>a.split(`
4`).map(n=>n.trim()).filter(Boolean))}}function u(e){return String(e??"").trim().split(/\s+/)[0]||""}export{p as D,g as S,_ as e,x as f,c as g,T as h,d as l,N as p};

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.