Skip to content

Commit

Permalink
refactor: Fix typo
Browse files Browse the repository at this point in the history
Fixes #155
  • Loading branch information
joachimvh committed Sep 16, 2020
1 parent fc4df9d commit c150da3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/storage/ExtensionBasedMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class ExtensionBasedMapper implements FileIdentifierMapper {
*
* @returns A ResourcePath object containing path and (optional) slug fields.
*/
public exctractDocumentName(identifier: ResourceIdentifier): ResourcePath {
public extractDocumentName(identifier: ResourceIdentifier): ResourcePath {
const [ , containerPath, documentName ] = /^(.*\/)([^/]+\/?)?$/u.exec(this.getRelativePath(identifier)) ?? [];
if (
(typeof containerPath !== 'string' || normalizePath(containerPath) === '/') && typeof documentName !== 'string') {
Expand Down
2 changes: 1 addition & 1 deletion src/storage/FileResourceStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export class FileResourceStore implements ResourceStore {

// Break up the request URI in the different parts `containerPath` and `documentName` as we know their semantics
// from addResource to call the InteractionController in the same way.
const { containerPath, documentName } = this.resourceMapper.exctractDocumentName(identifier);
const { containerPath, documentName } = this.resourceMapper.extractDocumentName(identifier);
// eslint-disable-next-line no-param-reassign
representation.metadata.identifier = DataFactory.namedNode(identifier.path);
const raw = representation.metadata.quads();
Expand Down

0 comments on commit c150da3

Please sign in to comment.