File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import 'package:pact_dart/src/errors.dart' ;
2
2
3
3
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}$' ;
6
6
7
7
/// Matches that the type and value is equal.
8
8
static Map EqualTo (dynamic example) {
@@ -101,10 +101,10 @@ class PactMatchers {
101
101
}
102
102
103
103
static Map email (example) {
104
- return PactMatchers .Term (UUID_REGEX , example);
104
+ return PactMatchers .Term (EMAIL_REGEX , example);
105
105
}
106
106
107
107
static Map uuid (example) {
108
- return PactMatchers .Term (EMAIL_REGEX , example);
108
+ return PactMatchers .Term (UUID_REGEX , example);
109
109
}
110
110
}
You can’t perform that action at this time.
0 commit comments