|
@@ -602,18 +602,20 @@ sub parse_string {
|
|
|
(?: # start of optional part
|
|
(?: # start of optional part
|
|
|
\s* \( # open parenthesis for version part
|
|
\s* \( # open parenthesis for version part
|
|
|
\s* (<<|<=|=|>=|>>|[<>]) # relation part
|
|
\s* (<<|<=|=|>=|>>|[<>]) # relation part
|
|
|
- \s* (.*?) # do not attempt to parse version
|
|
|
|
|
|
|
+ \s* ([^\)]+) # do not attempt to parse version
|
|
|
\s* \) # closing parenthesis
|
|
\s* \) # closing parenthesis
|
|
|
)? # end of optional part
|
|
)? # end of optional part
|
|
|
(?: # start of optional architecture
|
|
(?: # start of optional architecture
|
|
|
\s* \[ # open bracket for architecture
|
|
\s* \[ # open bracket for architecture
|
|
|
- \s* (.*?) # don't parse architectures now
|
|
|
|
|
|
|
+ \s* ([^\]]+) # don't parse architectures now
|
|
|
\s* \] # closing bracket
|
|
\s* \] # closing bracket
|
|
|
)? # end of optional architecture
|
|
)? # end of optional architecture
|
|
|
- (?: # start of optional restriction
|
|
|
|
|
|
|
+ (
|
|
|
|
|
+ (?: # start of optional restriction
|
|
|
\s* < # open bracket for restriction
|
|
\s* < # open bracket for restriction
|
|
|
- \s* (.*) # do not parse restrictions now
|
|
|
|
|
|
|
+ \s* [^>]+ # do not parse restrictions now
|
|
|
\s* > # closing bracket
|
|
\s* > # closing bracket
|
|
|
|
|
+ )+
|
|
|
)? # end of optional restriction
|
|
)? # end of optional restriction
|
|
|
\s*$ # trailing spaces at end
|
|
\s*$ # trailing spaces at end
|
|
|
}x;
|
|
}x;
|