mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -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)) {
|
if (!kwp.separator_after_re.empty() && kwp.separator_after_re.matches(sep_match, param)) {
|
||||||
size_t sep_start = sep_match.position();
|
size_t sep_start = sep_match.position();
|
||||||
assert(sep_match[0].second == param.end()); // should only match at end of param
|
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);
|
param.resize(sep_start);
|
||||||
// strip from tagged version
|
// strip from tagged version
|
||||||
size_t sep_start_t = untagged_to_index(part, sep_start, false);
|
size_t sep_start_t = untagged_to_index(part, sep_start, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user