Skip to content

Commit

Permalink
Make clipboard item recogniser more generous
Browse files Browse the repository at this point in the history
  • Loading branch information
coldino committed Jul 22, 2021
1 parent 222e670 commit b2df011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TestItem.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ InsertTrayMenuItems() {

GetItemFromClipboard() {
; Verify the information is what we're looking for
if RegExMatch(clipboard, "(Rarity|Item Class): .*?\R.*?\R?.*?\R--------\R.*") = 0 {
if RegExMatch(clipboard, "(Rarity|Item Class): .+?(\r.+?){3,}") = 0 {
MsgBox % "Not a PoE item"
return false
}
Expand Down

0 comments on commit b2df011

Please sign in to comment.