Skip to content

Commit

Permalink
Make eslint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
otacke committed Sep 12, 2024
1 parent c5b3565 commit 5352c93
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/scripts/mixins/xapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ export default class XAPI {
return definition;
}

/**
/**
* Get tasks description.
* @returns {string} Description.
*/
getXAPIDescription() {
// The below replaceAll makes sure we don't get any unwanted XAPI_PLACEHOLDERs in the description
const introduction = this.params.taskDescription
.replaceAll(/_{10,}/gi, '_________') || DEFAULT_DESCRIPTION;
const fields = this.content.getXAPIDescription();
return `${introduction}${fields}`;
}
getXAPIDescription() {
// The below replaceAll makes sure we don't get any unwanted XAPI_PLACEHOLDERs in the description
const introduction = this.params.taskDescription
.replaceAll(/_{10,}/gi, '_________') || DEFAULT_DESCRIPTION;
const fields = this.content.getXAPIDescription();
return `${introduction}${fields}`;
}
}

0 comments on commit 5352c93

Please sign in to comment.