Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 2fad638

Browse files
committed
refactor($location): remove unnecessary capturing group in RegExp
1 parent a094089 commit 2fad638

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/location.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function stripHash(url) {
102102
}
103103

104104
function trimEmptyHash(url) {
105-
return url.replace(/(#.+)|#$/, '$1');
105+
return url.replace(/#$/, '');
106106
}
107107

108108

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy