Skip to content

Commit

Permalink
Merge pull request #2892 from hufang360/patch-1
Browse files Browse the repository at this point in the history
Update Utils.cs
  • Loading branch information
QuiCM authored Mar 26, 2023
2 parents 01b8e52 + 9231b7d commit 2c06e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TShockAPI/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public List<Item> GetItemByName(string name)
/// <returns>The item represented by the tag.</returns>
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);
if (!match.Success)
return null;
Expand Down

0 comments on commit 2c06e2b

Please sign in to comment.