Open DJTommek opened 3 years ago
If coordinates are too close together (in mean of string), it might not detect them all. Examples:
50.087451,14.420671 50.087451,-14.420671 -50.087451,14.420671 -50.087451,-14.420671
Expected results:
50.087451,14.420671 50.087451,-14.420671 50.087451,14.420671 -50.087451,-14.420671
Detected results:
50.087451,14.420671 50.087451,-14.420671 (2x)
Workaround to match expected and detected results is add random character between coordinates, eg:
50.087451,14.420671 a 50.087451,-14.420671 ! -50.087451,14.420671 . -50.087451,-14.420671
This bug can be reproduced in both inline and text messages.
Could be solved via searching one coordinate at time instead of loading them all at once:
preg_match()
preg_match_all()
!
If coordinates are too close together (in mean of string), it might not detect them all. Examples:
Expected results:
Detected results:
Workaround to match expected and detected results is add random character between coordinates, eg:
This bug can be reproduced in both inline and text messages.