Skip to content

Commit 8d73a20

Browse files
committed
feat(LEXER): support function names containing dots
1 parent 1f57145 commit 8d73a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bashcov/lexer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def relevant?(line)
104104
line.start_with?(*IGNORE_START_WITH) ||
105105
line.end_with?(*IGNORE_END_WITH)
106106

107-
return false if line =~ /\A[a-zA-Z_][a-zA-Z0-9_\-:]*\(\)/ # function declared without the `function` keyword
107+
return false if line =~ /\A[a-zA-Z_][a-zA-Z0-9_\-:\.]*\(\)/ # function declared without the `function` keyword
108108
return false if line =~ /\A[^)]+\)\Z/ # case statement selector, e.g. `--help)`
109109

110110
true

0 commit comments

Comments
 (0)