Skip to content

Commit 19c08e7

Browse files
Merge pull request #14 from matthewshirley/issue-13
Wrong naming for PactMatchers Regex
2 parents 72eb722 + 43f9076 commit 19c08e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/src/matchers.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import 'package:pact_dart/src/errors.dart';
22

33
class PactMatchers {
4-
static const UUID_REGEX = r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$';
5-
static const EMAIL_REGEX = r'^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$';
4+
static const EMAIL_REGEX = r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$';
5+
static const UUID_REGEX = r'^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$';
66

77
/// Matches that the type and value is equal.
88
static Map EqualTo(dynamic example) {
@@ -101,10 +101,10 @@ class PactMatchers {
101101
}
102102

103103
static Map email(example) {
104-
return PactMatchers.Term(UUID_REGEX, example);
104+
return PactMatchers.Term(EMAIL_REGEX, example);
105105
}
106106

107107
static Map uuid(example) {
108-
return PactMatchers.Term(EMAIL_REGEX, example);
108+
return PactMatchers.Term(UUID_REGEX, example);
109109
}
110110
}

0 commit comments

Comments
 (0)