diff options
Diffstat (limited to 'project2/regexCheck.cpp')
-rw-r--r-- | project2/regexCheck.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/project2/regexCheck.cpp b/project2/regexCheck.cpp index 0412145..08b1e75 100644 --- a/project2/regexCheck.cpp +++ b/project2/regexCheck.cpp @@ -9,7 +9,7 @@ RegexCheck::RegexCheck(const xmlpp::Element * p) : SourceObject(p), ParamChecker(p), applyTo(p, "apply-to"), - regex(xmlChildText(p, "regex").raw()) + regex(p, "regex") { } @@ -31,6 +31,6 @@ RegexCheck::performCheck() const bool RegexCheck::checkString(const Glib::ustring & str) const { - return boost::regex_match(str.begin(), str.end(), regex); + return boost::regex_match(str.begin(), str.end(), boost::regex(regex())); } |