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 06ea34b commit 96d7218Copy full SHA for 96d7218
lib/Sabberworm/CSS/Value/Size.php
@@ -61,7 +61,7 @@ public function isRelative() {
61
62
public function __toString() {
63
$l = localeconv();
64
- return preg_replace(array('/' . $l['decimal_point'] . '/', '/^0./'), '.', $this->fSize) . ($this->sUnit === null ? '' : $this->sUnit);
+ return preg_replace(array('/' . preg_quote($l['decimal_point'], '/') . '/', '/^0\./'), '.', $this->fSize) . ($this->sUnit === null ? '' : $this->sUnit);
65
}
66
67
0 commit comments