演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
9 lines
265 B
Python
9 lines
265 B
Python
"""Plain-words filtering for list ops whose source returns everything."""
|
|
|
|
|
|
def matches(words: str, *texts: str | None) -> bool:
|
|
if not words:
|
|
return True
|
|
needle = words.casefold()
|
|
return any(needle in text.casefold() for text in texts if text)
|