Skip to content

Commit

Permalink
Update src/language-js/needs-parens.js
Browse files Browse the repository at this point in the history
Co-Authored-By: yangsu <yang@quip.com>
  • Loading branch information
ikatyang and yangsu committed Jan 30, 2019
1 parent 0257321 commit dd47166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/language-js/needs-parens.js
Expand Up @@ -42,7 +42,7 @@ function hasClosureCompilerTypeCastComment(text, path, locStart, locEnd) {

function isTypeCastComment(comment) {
const trimmed = comment.trim();
if (!/^\*\s*@type\s*\{[^]+\}/.test(trimmed)) {
if (!/^\*\s*@type\s*\{[^]+\}$/.test(trimmed)) {
return false;
}
let isCompletelyClosed = false;
Expand Down

0 comments on commit dd47166

Please sign in to comment.