A trailing-whitespace regex freezes the page when it parses AI outputgotchas / spfx/\s+$/ and lazy (.+?)\s*$ are quadratic on a line with a long run of spaces that does not end the line; text from an AI model or a foreign document is untrusted input, so trim with trimEnd() and anchor captures on a…
SharePoint Search cannot see text inside images — and what that does to RAGgotchas / searchThe crawler indexes the text layer only, so a value that exists only in an embedded flyer or a scan can never be found by keyword: a search-then-read pipeline is in a closed loop, the LLM re-ranker drops such documents…