• R/O
  • HTTP
  • SSH
  • HTTPS

dialektos: Commit

dialektos


Commit MetaInfo

Revisionefa90fbce1ebd18f21ca86c1b191d7ed4de04ec5 (tree)
Time2009-07-12 10:47:41
AuthorAiwota Programmer <aiwotaprog@tett...>
CommiterAiwota Programmer

Log Message

Regular expression for subject.txt is corrected.

Change Summary

Incremental Difference

--- a/src/bbs_detail_base.cxx
+++ b/src/bbs_detail_base.cxx
@@ -219,7 +219,7 @@ void Base::load_subject_from_string(const std::string& subject,
219219
220220 using namespace boost::xpressive;
221221 const sregex regex = (s1=repeat<9,10>(_d)) >> ".dat" >> *_s >> "<>"
222- >> (s2=-+_) >> '(' >> *_s >> (s3=+_d) >> *_s >> ')' >> *_;
222+ >> (s2=-+_) >> '(' >> *_s >> (s3=+_d) >> *_s >> ')';
223223
224224 std::vector<SubjectItem> list;
225225
@@ -230,6 +230,7 @@ void Base::load_subject_from_string(const std::string& subject,
230230 ss << subject;
231231 std::string line;
232232 while (std::getline(ss, line)) {
233+ boost::algorithm::trim_right(line);
233234 try {
234235 const std::string utf8 =
235236 get_encoding() == "cp932" ? convert::cp932(line) :
Show on old repository browser