cyon / vue-translation-manager

Interactively translate strings in Vue single file components
26 stars 12 forks source link

Incorrect parsing of attributes #6

Closed aschempp closed 6 years ago

aschempp commented 6 years ago

Parsing attributes apparently does not stop if the next attribute starts with @.

Example:

<button type="button" title="My Title" @click="myAction">

The resulting key and label contains everything from title and action, e.g. My Title" @click="myAction

aschempp commented 6 years ago

This seems to be happening on any attribute if it's not the last one.

MaxGfeller commented 6 years ago

There was an error in the regex used for attributes. Should be fixed in 1.0.7.