From 7c264950c0bff588f6852c461c26b37a550a5abb Mon Sep 17 00:00:00 2001 From: "Avi Halachmi (:avih)" Date: Fri, 23 Jul 2021 19:11:23 +0300 Subject: sub: new: --sub-filter-jsre (js regex) Pretty much identical to filter-regex but with JS expressions and requires only JS support. Shares the filter-regex-* control options. The target audience is Windows users - where filter-regex doesn't work due to missing APIs, but mujs builds cleanly on Windows, and JS is usually enabled in 3rd party Windows mpv builds. Lua could have been used with similar effort, however, the JS regex syntax is more extensive and also much more similar to POSIX. --- options/options.h | 1 + 1 file changed, 1 insertion(+) (limited to 'options/options.h') diff --git a/options/options.h b/options/options.h index 41aa88abb9..7963d6bd28 100644 --- a/options/options.h +++ b/options/options.h @@ -115,6 +115,7 @@ struct mp_sub_filter_opts { int sub_filter_SDH_harder; int rf_enable; char **rf_items; + char **jsre_items; int rf_warn; }; -- cgit v1.2.3