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>
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net