wp-cli / i18n-command

Provides internationalization tools for WordPress projects.
MIT License
96 stars 52 forks source link

Consecutive comments => String extraction fail in the js file #285

Closed cloudinstone closed 2 years ago

cloudinstone commented 3 years ago

If there are more than two consecutive comments in js file, it will cause the string extraction in the file to fail.

for example:

const a ="A"
{/* const b = "B"; */}
{/* const c = "C"; */}
const d = "D";
simonhammes commented 3 years ago

@cloudinstone I can't reproduce this locally (using wp i18n make-pot .).

Which version of WP-CLI are you running? (wp cli info) And which command are you running with which args?