fails at some pretty simple parsing. Try
getUrlParts('www.google.com')
in a console on this page.