diff --git a/NEWS b/NEWS index 294a79ac2..509865594 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,7 @@ ver 0.24 (not yet released) - filter "prio" (for "playlistfind"/"playlistsearch") - limit "player" idle events to the current partition - operator "starts_with" + - show PCRE support in "config" response * archive - add option to disable archive plugins in mpd.conf * decoder diff --git a/doc/protocol.rst b/doc/protocol.rst index a39e35893..69bdada87 100644 --- a/doc/protocol.rst +++ b/doc/protocol.rst @@ -1602,6 +1602,7 @@ Reflection - ``music_directory``: The absolute path of the music directory. - ``playlist_directory``: The absolute path of the playlist directory. + - ``pcre``: Indicates pcre support. .. _command_commands: diff --git a/src/command/OtherCommands.cxx b/src/command/OtherCommands.cxx index c19409406..2e1f0ce2d 100644 --- a/src/command/OtherCommands.cxx +++ b/src/command/OtherCommands.cxx @@ -395,6 +395,10 @@ handle_config(Client &client, [[maybe_unused]] Request args, Response &r) if (const auto spl_path = map_spl_path(); !spl_path.IsNull()) r.Fmt(FMT_STRING("playlist_directory: {}\n"), spl_path.ToUTF8()); +#ifdef HAVE_PCRE + r.Write("pcre: 1\n"); +#endif + return CommandResult::OK; }