From f2c0e6ef02ebc639c525a24fcf532b989d2340bb Mon Sep 17 00:00:00 2001 From: Daniel Gerblick Date: Mon, 18 Jul 2022 14:47:28 -0400 Subject: fixed issue causing hyprctl to output ill-formed json when strings include characters needing escaping --- src/helpers/MiscFunctions.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/helpers/MiscFunctions.hpp') diff --git a/src/helpers/MiscFunctions.hpp b/src/helpers/MiscFunctions.hpp index 108ac7f7..a40471a9 100644 --- a/src/helpers/MiscFunctions.hpp +++ b/src/helpers/MiscFunctions.hpp @@ -5,6 +5,7 @@ void addWLSignal(wl_signal*, wl_listener*, void* pOwner, std::string ownerString); void wlr_signal_emit_safe(struct wl_signal *signal, void *data); std::string getFormat(const char *fmt, ...); // Basically Debug::log to a string +std::string escapeJSONStrings(const std::string& str); void scaleBox(wlr_box*, float); std::string removeBeginEndSpacesTabs(std::string); bool isNumber(const std::string&, bool allowfloat = false); -- cgit v1.2.3