From 8de7909d8bb526f7b2c984b4ed8b94145aeae50b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 23 May 2013 01:56:25 +0300 Subject: [PATCH] Allow hyphens in LESS overrides --- wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php index 658c8da97a..a3a3281440 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php @@ -310,7 +310,7 @@ class StyleAddForm extends AbstractForm { } $lines = explode("\n", StringUtil::unifyNewlines($this->variables['overrideLess'])); - $regEx = new Regex('^@([a-zA-Z]+): ?([@a-zA-Z0-9 ,\.\(\)\%\#]+);$'); + $regEx = new Regex('^@([a-zA-Z]+): ?([@a-zA-Z0-9 ,\.\(\)\%\#-]+);$'); $errors = array(); foreach ($lines as $index => &$line) { $line = StringUtil::trim($line); -- 2.20.1