Skip to content

Commit 566a629

Browse files
Bugfix pattern matching in get_function_stats
Closes #5
1 parent 24ff197 commit 566a629

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

check.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ function print_script_stats(script_stats, indentation)
307307
mlintInfo = mlintInfo(strcmp({mlintInfo.id}, 'CABE'));
308308
mlintInfo = mlintInfo([mlintInfo.line] == func_struct.body(1).line);
309309
assert(length(mlintInfo) == 1);
310-
pattern = 'The McCabe complexity of ''(?<f>[^'']+)'' is (?<n>[0-9]+)';
310+
pattern = '''(?<f>[^'']+)'' is (?<n>[0-9]+)';
311311
matches = regexp(mlintInfo.message, pattern, 'names');
312312
func_stats.complexity = str2double(matches.n);
313313
end

0 commit comments

Comments
 (0)