Permalink
Browse files

Front end / More flexible regex to recognize distribution center loca…

…tions.
  • Loading branch information...
1 parent f1d4001 commit af7531883ad7f61904d95f99f432ff7036a39c28 @radgeek committed Dec 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 extensions/fusion/occupysandycard.class.php
@@ -145,7 +145,7 @@ function is_volunteer () {
return ($this->has_type('volunteer') or $this->is_distro_center());
}
function is_distro_center () {
- return $this->has_type('main distribution center');
+ return $this->has_type('(main\s+)?distribution\s*center');
}
function is_other_type () {
return !($this->is_drop_off() or $this->is_volunteer() or $this->is_distro_center());

0 comments on commit af75318

Please sign in to comment.