mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 14:31:50 +00:00
- fixed bug in regex generator for texture sets (* behaved as 'one or more characters', now behaves as 'zero or more characters')
- fixed bug in removing multiple selected texture sets at once (only removed one at a time)
This commit is contained in:
parent
bff42c7477
commit
b5e1ecbec1
2 changed files with 4 additions and 4 deletions
|
@ -105,12 +105,12 @@ namespace CodeImp.DoomBuilder.Config
|
|||
ss = ss.Replace("#", "\\#");
|
||||
ss = ss.Replace(" ", "\\ ");
|
||||
|
||||
// Replace the * with the regex code for optional multiple characters
|
||||
ss = ss.Replace("*", ".*?");
|
||||
|
||||
// Replace the ? with the regex code for single character
|
||||
ss = ss.Replace("?", ".");
|
||||
|
||||
// Replace the * with the regex code for optional multiple characters
|
||||
ss = ss.Replace("*", ".*?");
|
||||
|
||||
// When a filter has already added, insert a conditional OR operator
|
||||
if(regexstr.Length > 0) regexstr.Append("|");
|
||||
|
||||
|
|
|
@ -382,7 +382,7 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
private void removetextureset_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Texture Set selected?
|
||||
if(listtextures.SelectedItems.Count > 0)
|
||||
while(listtextures.SelectedItems.Count > 0)
|
||||
{
|
||||
// Remove from config info and list
|
||||
DefinedTextureSet s = (listtextures.SelectedItems[0].Tag as DefinedTextureSet);
|
||||
|
|
Loading…
Reference in a new issue