• src/sbbs3/js_global.cpp

    From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Saturday, November 14, 2026 23:31:19
    https://gitlab.synchro.net/main/sbbs/-/commit/678ac2ea59eff73a3b59f155
    Modified Files:
    src/sbbs3/js_global.cpp
    Log Message:
    New JS global function: bool_search(expression [,text] [,...])

    Expose the boolean search engine (boolsrch.c) that the Terminal Server's
    text searches use to JavaScript. The function returns true if the
    expression matches the text strings given (a term may be found in any
    one of them), and throws an exception whose message is the syntax error
    of an invalid expression, so calling it with no text validates one.

    It has no user interaction of its own: prompting for an expression and reporting an error are up to the caller.

    For issue #1345.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)