Skip to content

Commit fc03e9a

Browse files
authored
Merge pull request #7 from ssordopalacios/5-bugfix-pattern-matching
Bugfix pattern matching in get_function_stats
2 parents 24ff197 + 566a629 commit fc03e9a

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)