File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ impl std::str::FromStr for PackageId {
132
132
/// Attempts to parse a `PackageId` from a string. The string must match the pattern
133
133
/// of two segments containing only lowercase letters, numbers and hyphens, separated by a colon.
134
134
fn from_str ( input : & str ) -> Result < Self , Self :: Err > {
135
- let re = regex:: Regex :: new ( r"^[a-z0-9-]+:[a-z0-9-]+$" ) . unwrap ( ) ;
135
+ let re = regex:: Regex :: new ( r"^[a-z0-9-]+:[a-z0-9-. ]+$" ) . unwrap ( ) ;
136
136
if !re. is_match ( input) {
137
137
return Err ( ProcessIdParseError :: InvalidCharacter ) ;
138
138
}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ impl std::str::FromStr for ProcessId {
39
39
/// Attempts to parse a `ProcessId` from a string. The string must match the pattern
40
40
/// of three segments containing only lowercase letters, numbers and hyphens, separated by colons.
41
41
fn from_str ( input : & str ) -> Result < Self , ProcessIdParseError > {
42
- let re = regex:: Regex :: new ( r"^[a-z0-9-]+:[a-z0-9-]+:[a-z0-9-]+$" ) . unwrap ( ) ;
42
+ let re = regex:: Regex :: new ( r"^[a-z0-9-]+:[a-z0-9-]+:[a-z0-9-. ]+$" ) . unwrap ( ) ;
43
43
if !re. is_match ( input) {
44
44
return Err ( ProcessIdParseError :: InvalidCharacter ) ;
45
45
}
You can’t perform that action at this time.
0 commit comments