Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from vend/update-uuid-regex
Browse files Browse the repository at this point in the history
Add \^/$ asserting beginning and end of the string on UUID validator
  • Loading branch information
richardrowe authored Jun 15, 2020
2 parents 257efda + 9568c30 commit 08ae078
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
language: php

php:
- 5.5
- 5.4
- 5.6
- 7
- hhvm
- 7.2

install:
- composer install
Expand Down
2 changes: 1 addition & 1 deletion src/Formats/PlainString.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
class PlainString implements Format
{
const FORMAT = '/[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}/i';
const FORMAT = '/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i';

/**
* Whether the given value appears to fit this format
Expand Down

0 comments on commit 08ae078

Please sign in to comment.