We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb2d352 commit 0dfcbbdCopy full SHA for 0dfcbbd
src/Directive.php
@@ -171,14 +171,14 @@ private static function processText($text)
171
}
172
173
private static function checkKeyValue($text) {
174
- if (1 === preg_match('#^([a-z_]+)\s+([^;{]+)$#', $text, $matches)) {
+ if (1 === preg_match('#^([a-z][a-z0-9._/+-]*)\s+([^;{]+)$#', $text, $matches)) {
175
return array($matches[1], rtrim($matches[2]));
176
177
return false;
178
179
180
private static function checkKey($text) {
181
- if (1 === preg_match('#^([a-z_]+)\s*$#', $text, $matches)) {
+ if (1 === preg_match('#^([a-z][a-z0-9._/+-]*)\s*$#', $text, $matches)) {
182
return array($matches[1], null);
183
184
0 commit comments