mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-29 19:35:20 +02:00
31 lines
487 B
Python
31 lines
487 B
Python
"""Filter and test names admitted into the sandboxed environment."""
|
|
|
|
from __future__ import annotations
|
|
|
|
ALLOWED_FILTERS: tuple[str, ...] = (
|
|
"default",
|
|
"first",
|
|
"join",
|
|
"last",
|
|
"length",
|
|
"lower",
|
|
"replace",
|
|
"reverse",
|
|
"sort",
|
|
"tojson",
|
|
"trim",
|
|
"truncate",
|
|
"upper",
|
|
"date",
|
|
"slugify",
|
|
)
|
|
|
|
ALLOWED_TESTS: tuple[str, ...] = (
|
|
"defined",
|
|
"none",
|
|
"number",
|
|
"string",
|
|
"mapping",
|
|
"sequence",
|
|
"boolean",
|
|
)
|