diff options
| author | Daniel Gerblick <daniel.gerblick@gmail.com> | 2022-07-18 14:47:28 -0400 |
|---|---|---|
| committer | Daniel Gerblick <daniel.gerblick@gmail.com> | 2022-07-18 14:47:28 -0400 |
| commit | f2c0e6ef02ebc639c525a24fcf532b989d2340bb (patch) | |
| tree | 9951049e4fbb5c6ade45ed939ce1bf7cc621c99d /src/helpers/MiscFunctions.hpp | |
| parent | dc1f34c5fad7c4067808cfcff4d1fde74331de4c (diff) | |
fixed issue causing hyprctl to output ill-formed json when strings include characters needing escaping
Diffstat (limited to 'src/helpers/MiscFunctions.hpp')
| -rw-r--r-- | src/helpers/MiscFunctions.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); |
