diff --git a/app/controllers/api/v5/courses_controller.rb b/app/controllers/api/v5/courses_controller.rb index 261fec21..132d32c4 100644 --- a/app/controllers/api/v5/courses_controller.rb +++ b/app/controllers/api/v5/courses_controller.rb @@ -4,7 +4,7 @@ class Api::V5::CoursesController < Api::V5::ApiController def index if params[:search].present? - @query = Course.search params[:search].gsub(/[^0-9a-z\s]/i, '').split + @query = Course.search params[:search].gsub(/[^0-9a-z\-\s]/i, '').split else filter_model Course filter :section_id do |q|