summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-04-21 15:51:50 +0000
committerjstebbins <[email protected]>2015-04-21 15:51:50 +0000
commite69d7220dce41a902486683ba97d928cbe4b8301 (patch)
tree13058fb46395b1d63ff441c4b9cb9298958ed70b
parentc7614bb0a263b697d31be654e29575cc7180689f (diff)
param: allow ',' as decimal separator in filter settings
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.10.x@7111 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/param.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/param.c b/libhb/param.c
index b85f25a55..308308dc6 100644
--- a/libhb/param.c
+++ b/libhb/param.c
@@ -236,7 +236,7 @@ int hb_validate_param_string(const char *regex_pattern, const char *param_string
int hb_validate_filter_settings(int filter_id, const char *filter_param)
{
// Regex matches "number" followed by one or more ":number", where number is uint or ufloat
- const char *hb_colon_separated_params_regex = "^((([0-9]+([.][0-9]+)?)|([.][0-9]+))((:(([0-9]+([.][0-9]+)?)|([.][0-9]+)))+)?)$";
+ const char *hb_colon_separated_params_regex = "^((([0-9]+([.,][0-9]+)?)|([.,][0-9]+))((:(([0-9]+([.,][0-9]+)?)|([.,][0-9]+)))+)?)$";
const char *regex_pattern = NULL;