fixed bug in keyword parsing: seperator_after contained the whole string, causing it to be duplicated

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1299 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2009-01-08 14:33:00 +00:00
parent 1541d57c1a
commit 5d78df944d
+1 -1
View File
@@ -600,7 +600,7 @@ bool KeywordDatabase::tryExpand(const Keyword& kw,
if (!kwp.separator_after_re.empty() && kwp.separator_after_re.matches(sep_match, param)) {
size_t sep_start = sep_match.position();
assert(sep_match[0].second == param.end()); // should only match at end of param
separator_after.assign(param, sep_start);
separator_after.assign(param, sep_start, String::npos);
param.resize(sep_start);
// strip from tagged version
size_t sep_start_t = untagged_to_index(part, sep_start, false);