[Community Puzzle] Messed up mosaics

Hi,

Wild guess would be you are using some regex to solve it and the fact that there’s an asterisk and a dot in the pattern is messing with it.

Does your code works with:
In:

6
.-*
.-*.-*.-*
.-*.-*.-*
--*.-*.-*
.-*.-*.-*
.-*.-*.-*
.-*.-*.-*

Out:
(0,2)