Skip to content

Commit d16f4b7

Browse files
committed
Fixed issue of failing duplicate line ending removal
and therefore failing jhipster jdl command
1 parent f07e7f1 commit d16f4b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generators/spring-boot-javers/generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default class extends BaseApplicationGenerator {
3939
const needleIndex = content.indexOf(' // jhipster-needle-add-audited-entities');
4040
let beforeContent = content.substring(0, needleIndex);
4141
// Drop extra line ending if it exists, can be caused by prettier formatting
42-
beforeContent = beforeContent.endsWith('/n/n') ? beforeContent.slice(0, -1) : beforeContent;
42+
beforeContent = beforeContent.endsWith('\n\n') ? beforeContent.slice(0, -1) : beforeContent;
4343
const afterContent = content.substring(needleIndex);
4444

4545
if (!beforeContent.includes(needleValuePrefix) || !beforeContent.endsWith(needleValueSuffix)) {

0 commit comments

Comments
 (0)