Skip to main content
5 events
when toggle format what by license comment
Apr 9 at 1:08 review Suggested edits
Apr 12 at 1:33
Mar 1 at 5:55 comment added user5127 @Lindsay-Needs-Sleep i dont think you need regex, in my code # works fine
May 5, 2023 at 6:29 comment added Lindsay-Needs-Sleep @Alexander You can solve that issue like this var myUrl = new URL('a://' + window.location.hash.replace(/^#/g,"?")) (a:// is just the shortest possible "valid" url)
Jan 3, 2022 at 20:03 comment added Alexander It will work properly only if the url doesn't have any query parameters yet (and doesn't contain ? yet). So for example for this url it will not work: stackoverflow.com/?lala=kuku#bebe=nene
Jun 2, 2020 at 3:22 history answered Toma CC BY-SA 4.0