Skip to content

Commit 8c55493

Browse files
committed
fixed class name matcher
1 parent c17b46f commit 8c55493

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
exports.isClassName = function_name =>
2-
function_name.charAt(0) === function_name.charAt(0).toUpperCase();
1+
exports.isClassName = function_name => function_name.match(/^[A-Z]\w*$/)
32

43
exports.isSingleLineComment = line => line.match(/^\s*\/\/\!\s+.*$/);
54
exports.isCommentStart = line => line.match(/^\s*\/\*\!\s*$/);

0 commit comments

Comments
 (0)