Auto regex add button will use new syntax

This commit is contained in:
Jaex 2015-12-01 18:55:54 +02:00
parent 1f2df78767
commit 1ea3e5a555

View file

@ -2676,16 +2676,16 @@ private void lvCustomUploaderRegexps_MouseDoubleClick(object sender, MouseEventA
{
if (match.Groups.Count > 1 && !string.IsNullOrEmpty(match.Groups[1].Value))
{
syntax = string.Format("${0},{1}$", selectedIndex + 1, match.Groups[1].Value);
syntax = string.Format("$regex:{0},{1}$", selectedIndex + 1, match.Groups[1].Value);
}
else
{
syntax = string.Format("${0},1$", selectedIndex + 1);
syntax = string.Format("$regex:{0},1$", selectedIndex + 1);
}
}
else
{
syntax = string.Format("${0}$", selectedIndex + 1);
syntax = string.Format("$regex:{0}$", selectedIndex + 1);
}
txtCustomUploaderURL.AppendText(syntax);