Pattern now only checks the quotes characters on the same line.
Pattern now only checks the quotes characters on the same line.

The previous didn't consider if there was only one quote character on a single line. It broke on the "// That's all, stop editing! Happy blogging." comment.
See https://regex101.com/r/9hXp5d/5 for the example.
See https://regex101.com/r/9hXp5d/7 for the fix in action.

wp-cli/wp-cli,wp-cli/wp-cli