Skip to content

Commit

Permalink
Merge pull request #6865 from desertkaz/desertkaz-patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtraDR authored Jul 15, 2024
2 parents e4df590 + 532357a commit 39fbb77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inventory-manager.lic
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ class InventoryManager
end

def strip_nesting(item)
if (match = /^(?<tap>[a-z "':!-]*(?<closed>\(closed\))?)\s\((?<nest1>(?<nest2>nested container[A-Za-z "':!-]*)\s\()?(?<main>in container[a-z '-]*)\)?\)\s(?<origin>\(.*\))$/i.match(item))
if (match = /^(?<tap>[a-z "':!-]*(?<closed>\(closed\))?)\s\((?<nest1>(?<nest2>nested container[a-z "':!-]*)\s\()?(?<main>in container[a-z "':!-]*)\)?\)\s(?<origin>\(.*\))$/i.match(item))
return "#{match["tap"]} #{match["origin"]}"
else
return item
Expand Down

0 comments on commit 39fbb77

Please sign in to comment.