Skip to content

Commit d2927e5

Browse files
committed
1 parent a333717 commit d2927e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hydra/parseHydraDocumentation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import type {
2222
* Extracts the short name of a resource.
2323
*/
2424
function guessNameFromUrl(url: string, entrypointUrl: string): string {
25-
return url.substr(entrypointUrl.length + 1);
25+
return url.slice(entrypointUrl.length + 1);
2626
}
2727

2828
function getTitleOrLabel(obj: ExpandedOperation): string {

0 commit comments

Comments
 (0)