Here is a test case for longestCommonSubstring, currently failing in version 1.0.20
longestCommonSubstring(["abc - 48h", "abc - 108h", "abc - 168h"])
=> '8h', which is wrong
As a simple demonstration that something is fundamentally wrong, is that simply appending one more string to the aformentioned arguments makes the function return a longer common substring, which defies any logic I've got.
longestCommonSubstring(["abc - 48h", "abc - 108h", "abc - 168h", "abc - 228h"])
=> 'abc - ', looks good to me
Many thanks