diff options
Diffstat (limited to 'src/string.cc')
| -rw-r--r-- | src/string.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.cc b/src/string.cc index 2152cb15..8664ce16 100644 --- a/src/string.cc +++ b/src/string.cc @@ -51,8 +51,8 @@ std::vector<String> split(const String& str, char separator) String String::replace(const String& expression, const String& replacement) const { - boost::regex re(expression.m_content); - return String(boost::regex_replace(m_content, re, replacement.m_content)); + boost::regex re(expression); + return String(boost::regex_replace(*this, re, replacement)); } } |
