fdelbrayelle / generator-jhipster-kafka

A JHipster module that generates Apache Kafka consumers and producers and more!
Apache License 2.0
28 stars 10 forks source link

Generated Kafka configuration erases next block configuration #49

Closed fdelbrayelle closed 4 years ago

fdelbrayelle commented 4 years ago
Overview of the issue

When generating a new Kafka configuration, the next lines in application.yml after the kafka: block are erased.

Motivation for or Use Case

This is a critical bug as it could erase major configuration in application.yml.

Reproduce the error
  1. yo jhipster-kafka and select any prompt values.
  2. Check application.yml next lines after the kafka: block.
Suggest a Fix

The used regex to match the kafka: block does not seem to be good as it takes the next line as well:

/kafka:\n((\s.+)\n)+/g
JHipster Version(s)

6.8.0

fdelbrayelle commented 4 years ago

fixed