diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-23 09:41:07 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-28 15:36:25 +0100 |
commit | d41f072a30c4a91925771d38fb224ee271805d8f (patch) | |
tree | b165a6281b1e5fa7edc7b29fc97a6a5a5f7ad38c | |
parent | c21921e58dd487be90e496a325168b2f2093b0ff (diff) |
[Open311] Only strip colons at end of description.
-rw-r--r-- | perllib/Open311/PopulateServiceList.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/Open311/PopulateServiceList.pm b/perllib/Open311/PopulateServiceList.pm index d506111ec..ad7288c62 100644 --- a/perllib/Open311/PopulateServiceList.pm +++ b/perllib/Open311/PopulateServiceList.pm @@ -226,7 +226,7 @@ sub _add_meta_to_contact { # turn the data into something a bit more friendly to use my @meta = # remove trailing colon as we add this when we display so we don't want 2 - map { $_->{description} =~ s/:\s*//; $_ } + map { $_->{description} =~ s/:\s*$//; $_ } # there is a display order and we only want to sort once sort { $a->{order} <=> $b->{order} } @{ $meta_data->{attributes} }; |