summaryrefslogtreecommitdiff
path: root/src/ClientPattern.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClientPattern.cc')
-rw-r--r--src/ClientPattern.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ClientPattern.cc b/src/ClientPattern.cc
index d2c809c..339092d 100644
--- a/src/ClientPattern.cc
+++ b/src/ClientPattern.cc
@@ -170,11 +170,6 @@ string ClientPattern::toString() const {
170 for (; it != it_end; ++it) { 170 for (; it != it_end; ++it) {
171 171
172 pat.append(" ("); 172 pat.append(" (");
173 // replace special chars like ( ) and [ ] with \( \) and \[ \]
174 string orig = FbTk::StringUtil::replaceString((*it)->orig, "(", "\\(");
175 orig = FbTk::StringUtil::replaceString(orig, ")", "\\)");
176 orig = FbTk::StringUtil::replaceString(orig, "[", "\\[");
177 orig = FbTk::StringUtil::replaceString(orig, "]", "\\]");
178 173
179 switch ((*it)->prop) { 174 switch ((*it)->prop) {
180 case NAME: 175 case NAME:
@@ -190,7 +185,7 @@ string ClientPattern::toString() const {
190 pat.append("role="); 185 pat.append("role=");
191 } 186 }
192 187
193 pat.append(orig); 188 pat.append((*it)->orig);
194 pat.append(")"); 189 pat.append(")");
195 } 190 }
196 191