Skip to content

Commit 6b23a7c

Browse files
authored
chore: camelCase -> snake_case (#15573)
1 parent e25c281 commit 6b23a7c

File tree

1 file changed

+3
-3
lines changed
  • packages/svelte/src/compiler/migrate

1 file changed

+3
-3
lines changed

packages/svelte/src/compiler/migrate/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,9 +1673,9 @@ function extract_type_and_comment(declarator, state, path) {
16731673
const match = /@type {(.+)}/.exec(comment_node.value);
16741674
if (match) {
16751675
// try to find JSDoc comments after a hyphen `-`
1676-
const jsdocComment = /@type {.+} (?:\w+|\[.*?\]) - (.+)/.exec(comment_node.value);
1677-
if (jsdocComment) {
1678-
cleaned_comment += jsdocComment[1]?.trim();
1676+
const jsdoc_comment = /@type {.+} (?:\w+|\[.*?\]) - (.+)/.exec(comment_node.value);
1677+
if (jsdoc_comment) {
1678+
cleaned_comment += jsdoc_comment[1]?.trim();
16791679
}
16801680
return {
16811681
type: match[1],

0 commit comments

Comments
 (0)