Complete the function/method so that it returns the url with anything after the anchor (#) removed.
Examples
remove_url_anchor('dev.to#about')
returns 'dev.to'
remove_url_anchor('www.telegraph.co.uk/branding')
returns 'www.telegraph.co.uk/branding'
Tests
remove_url_anchor('www.twitter.com?page=1')
remove_url_anchor('www.twitter.com#about')
Good luck!
This challenge comes from jhoffner on CodeWars. Thank you to CodeWars, who has licensed redistribution of this challenge under the 2-Clause BSD License!
Want to propose a challenge idea for a future post? Email yo+challenge@dev.to with your suggestions!