Skip to content

Commit 614ec3b

Browse files
committed
Add support for decimal numbers in References::rotation()
1 parent dd9b1f1 commit 614ec3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/References.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function rotation(string $rotation): string
154154
{
155155
$rotation = \trim($rotation);
156156

157-
if (\preg_match('~^-?\d+[<>]?$~u', $rotation)) {
157+
if (\preg_match('~^-?\d+(\.\d+)?[<>]?$~u', $rotation)) {
158158
return $rotation;
159159
}
160160

0 commit comments

Comments
 (0)