diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-29 13:43:40 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-29 13:43:40 +0100 |
commit | c9f928ea2ea10220d40cddf9d7fc8009a22cf02a (patch) | |
tree | 3dbf5b0396e27bba6af82080bc0bc82539d2977b /sinksh/syntax_modules/sink_list.cpp | |
parent | a79a4d2f12cb239bbc30aa23af02db0deb529bc3 (diff) | |
download | sink-c9f928ea2ea10220d40cddf9d7fc8009a22cf02a.tar.gz sink-c9f928ea2ea10220d40cddf9d7fc8009a22cf02a.zip |
Support UUID's without curly braces
Diffstat (limited to 'sinksh/syntax_modules/sink_list.cpp')
-rw-r--r-- | sinksh/syntax_modules/sink_list.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sinksh/syntax_modules/sink_list.cpp b/sinksh/syntax_modules/sink_list.cpp index b002438..a56740d 100644 --- a/sinksh/syntax_modules/sink_list.cpp +++ b/sinksh/syntax_modules/sink_list.cpp | |||
@@ -42,6 +42,9 @@ namespace SinkList | |||
42 | static QByteArray compressId(bool compress, const QByteArray &id) | 42 | static QByteArray compressId(bool compress, const QByteArray &id) |
43 | { | 43 | { |
44 | if (!compress) { | 44 | if (!compress) { |
45 | if (id.startsWith('{')) { | ||
46 | return id.mid(1, id.length() - 2); | ||
47 | } | ||
45 | return id; | 48 | return id; |
46 | } | 49 | } |
47 | auto compactId = id.mid(1, id.length() - 2).split('-'); | 50 | auto compactId = id.mid(1, id.length() - 2).split('-'); |