Fix handling of extra_query_params in Business::OnlinePayment wrapper.
[interchange.git] / code / Filter / digits_dash.filter
1 # Copyright 2008 Interchange Development Group
2 # Copyright 2008 Davor Ocelic
3
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.  See the LICENSE file for details.
8
9 # $Id: digits_dash.filter,v 1.1 2008-04-27 17:37:10 docelic Exp $
10
11 CodeDef digits_dash Filter
12 CodeDef digits_dash Description Digits-dashes
13 CodeDef digits_dash Routine <<EOR
14 sub {
15         my $val = shift;
16         $val =~ s/[^\d-]+//g;
17         return $val;
18 }
19 EOR