fixed gadgets detect maps regexp patterns