Skip to content
This repository was archived by the owner on Jan 20, 2019. It is now read-only.

Commit 28f8135

Browse files
committed
Fix typo in README
1 parent cbae8af commit 28f8135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $factory = new FactoryDefault();
2828
$converter = $factory->getConverter();
2929

3030
$range = new Range(1, 3456);
31-
$regex = sprintf('/^(%s)$', $converter->toRegex($range));
31+
$regex = sprintf('/^(%s)$/', $converter->toRegex($range));
3232
// /^[1-9]|[1-9][0-9]|[1-9][0-9]{2}|[1-2][0-9]{3}|3[0-3][0-9]{2}|34[0-4][0-9]|345[0-6]$/
3333
$matchesRegex = (bool) preg_match($regex, 0); // false
3434
$matchesRegex = (bool) preg_match($regex, 2014); // true

0 commit comments

Comments
 (0)