Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Commit

Permalink
Merge pull request #267 from YACS-RCOS/staging
Browse files Browse the repository at this point in the history
Fix issue where professor names with hyphens are unsearchable
  • Loading branch information
Bad-Science authored Nov 10, 2017
2 parents bec5b5e + c71e0c3 commit f798b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/v5/courses_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit f798b2e

Please sign in to comment.