Skip to content

Commit e64b971

Browse files
committed
add format to Decimal type
1 parent d8d59b4 commit e64b971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/Decimal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Decimal extends AbstractMultiBaseType
3838
*/
3939
public function renderValue($value, \Doku_Renderer $R, $mode)
4040
{
41-
if (preg_match("/^%(?:['+-:\.]?\D?\d*\.?\d*)?[bdeEfFu]$/",$this->config['format'])) {
41+
if (preg_match("/^%(?:['+-:.]?\D?\d*\.?\d*)?[bdeEfFu]$/",$this->config['format'])) {
4242
$R->cdata($this->config['prefix'] . sprintf($this->config['format'],$value) . $this->config['postfix']);
4343
return true;
4444
}

0 commit comments

Comments
 (0)