PageSourceSearch

https://stackb.net/build/assets/core-romoGoBH.js

js stackb.net collected 2026-10-01 15:32:51 UTC 692 bytes, 1 lines download raw bytes

1import{a as c}from"./client-1oPYM0lM.js";const o=/(?:^|[^a-zA-Z0-9._@-])@([a-zA-Z0-9._-]*)$/,l=/[a-zA-Z0-9._-]/,A=(e,t)=>{if(t===null||t<1)return null;const s=e.slice(0,t),n=s.match(o);if(!n)return null;const r=t-n[1].length-1;return/https?:\/\/\S*$/i.test(s.slice(0,r))?null:{start:r,end:t,query:n[1]}},f=(e,t,s)=>{let n=t.end;for(;n<e.length&&l.test(e[n]);)n+=1;const r=e.slice(n),a=r===""?" ":/^[\s.,!?;:)\]}]/.test(r)?"":" ",i=`@${s}${a}`;return{value:`${e.slice(0,t.start)}${i}${r}`,caret:t.start+i.length}},h=async(e,t)=>{const{data:s}=await c.get("/api/mentions/users",{params:{query:e},signal:t});return Array.isArray(s==null?void 0:s.users)?s.users:[]};export{h as a,A as f,f as r};

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.