Skip to content

Commit caa252e

Browse files
committed
chore(router): change substr to substring
1 parent d5edc74 commit caa252e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/angular2/src/router/hash_location_strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class HashLocationStrategy extends LocationStrategy {
2323
path(): string {
2424
// the hash value is always prefixed with a `#`
2525
// and if it is empty then it will stay empty
26-
return this._location.hash.substr(1);
26+
return this._location.hash.substring(1);
2727
}
2828

2929
pushState(state: any, title: string, url: string) {

0 commit comments

Comments
 (0)