We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f07e7f1 commit d16f4b7Copy full SHA for d16f4b7
generators/spring-boot-javers/generator.js
@@ -39,7 +39,7 @@ export default class extends BaseApplicationGenerator {
39
const needleIndex = content.indexOf(' // jhipster-needle-add-audited-entities');
40
let beforeContent = content.substring(0, needleIndex);
41
// Drop extra line ending if it exists, can be caused by prettier formatting
42
- beforeContent = beforeContent.endsWith('/n/n') ? beforeContent.slice(0, -1) : beforeContent;
+ beforeContent = beforeContent.endsWith('\n\n') ? beforeContent.slice(0, -1) : beforeContent;
43
const afterContent = content.substring(needleIndex);
44
45
if (!beforeContent.includes(needleValuePrefix) || !beforeContent.endsWith(needleValueSuffix)) {
0 commit comments