Skip to content

Commit 971b189

Browse files
Fix bug with extracitng class name from exercise slug
1 parent ecfd220 commit 971b189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/analyze_solution.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def call
77
code_to_analyze = File.read(solution_path / FILENAMES[exercise_slug])
88

99
puts "Analysing #{exercise_slug}"
10-
classified_exercise = exercise_slug.tr('-', '_').classify
10+
classified_exercise = exercise_slug.split('-').map(&:capitalize).join
1111
results = "#{classified_exercise}::Analyze".constantize.(code_to_analyze)
1212

1313
File.open(output_path / "analysis.json", "w") do |f|

0 commit comments

Comments
 (0)