CharSet Tool - minor bug
6 years 7 months ago #2999
by studenman
CharSet Tool - minor bug was created by studenman
The code that removes the [i2***] specialization and plural tags is not properly removing the last ] from the string. I believe the code should be changed to:
Changed: text = text.Remove(idx, idx2 - idx + 1);
string RemoveTagsPrefix(string text, string tagPrefix)
{
int idx = 0;
while (idx < text.Length)
{
idx = text.IndexOf(tagPrefix);
if (idx < 0)
break;
int idx2 = text.IndexOf(']', idx);
if (idx2 < 0)
break;
text = text.Remove(idx, idx2 - idx + 1);
}
return text;
}
Changed: text = text.Remove(idx, idx2 - idx + 1);
Please Log in or Create an account to join the conversation.
6 years 7 months ago #3000
by Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
Replied by Frank on topic CharSet Tool - minor bug
Thanks for looking into that!
You are right, I just made the change,
THANKS!
You are right, I just made the change,
THANKS!
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
To get the betas as soon as they are ready,
check this out
Please Log in or Create an account to join the conversation.
Time to create page: 0.150 seconds