mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-04 04:06:05 +13:00
Auto regex add button will use new syntax
This commit is contained in:
parent
1f2df78767
commit
1ea3e5a555
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue