Skip to content

Commit dd9b1f1

Browse files
authored
Merge pull request #35 from jsedlmayr/bugfix/rotate-regex
Fixed regex for rotation command without options
2 parents b9dd7c6 + 4a89c85 commit dd9b1f1

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+[<>]?$~u', $rotation)) {
158158
return $rotation;
159159
}
160160

0 commit comments

Comments
 (0)