diff --git a/src/app/degree-planner/course-search/course-search.component.ts b/src/app/degree-planner/course-search/course-search.component.ts index 76da8b43d2aec73439d2070095f61559711aabbf..f2f7202c608392c4aec099c8a0753400bddabcba 100644 --- a/src/app/degree-planner/course-search/course-search.component.ts +++ b/src/app/degree-planner/course-search/course-search.component.ts @@ -131,8 +131,8 @@ export class CourseSearchComponent implements OnInit, OnDestroy { (this.courseSearchForm.get( 'subject', ) as AbstractControl).valueChanges.subscribe(value => { - // If the subject value is blank, reset the filtered subjects - if (value === '') { + // If the subject value is blank, or if the user is typing "all" + if (new RegExp('^([Aa]?[Ll]{0,2})$').test(value.trim())) { this.filteredSubjects = this.subjects; return; }