mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user