Skip to content

Commit f8476c9

Browse files
committed
Fix BC number regex
* the integer part may contain non-leading zeroes * The decimal point has to be a full stop * the fractional part requires a leading decimal point
1 parent c9c1581 commit f8476c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/bc/book.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</para>
1717
<para>
1818
Valid (aka. well-formed) BCMath numbers are strings which match the regular expression
19-
<literal>/^[+-]?[0]*[1-9]*[.]?[0-9]*$/</literal>.
19+
<literal>/^[+-]?[0-9]*(\.[0-9]*)?$/</literal>.
2020
</para>
2121
<caution>
2222
<para>

0 commit comments

Comments
 (0)