commit
2c06e2bdf5
1 changed files with 1 additions and 1 deletions
|
|
@ -330,7 +330,7 @@ namespace TShockAPI
|
||||||
/// <returns>The item represented by the tag.</returns>
|
/// <returns>The item represented by the tag.</returns>
|
||||||
public Item GetItemFromTag(string tag)
|
public Item GetItemFromTag(string tag)
|
||||||
{
|
{
|
||||||
Regex regex = new Regex(@"\[i(tem)?(?:\/s(?<Stack>\d{1,3}))?(?:\/p(?<Prefix>\d{1,3}))?:(?<NetID>-?\d{1,4})\]");
|
Regex regex = new Regex(@"\[i(tem)?(?:\/s(?<Stack>\d{1,4}))?(?:\/p(?<Prefix>\d{1,3}))?:(?<NetID>-?\d{1,4})\]");
|
||||||
Match match = regex.Match(tag);
|
Match match = regex.Match(tag);
|
||||||
if (!match.Success)
|
if (!match.Success)
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue