mirror of
https://github.com/theonedev/onedev.git
synced 2025-12-08 18:26:30 +00:00
chore: Allow spaces in review requirement criterias
This commit is contained in:
parent
ecace0afe3
commit
5f5c114cdd
@ -4,8 +4,8 @@ requirement: WS* criteria (WS+ criteria)* WS* EOF;
|
|||||||
|
|
||||||
criteria: userCriteria | groupCriteria;
|
criteria: userCriteria | groupCriteria;
|
||||||
|
|
||||||
userCriteria: USER Value;
|
userCriteria: USER WS* Value;
|
||||||
groupCriteria: GROUP Value (':' DIGIT)?;
|
groupCriteria: GROUP WS* Value (WS*':' WS* DIGIT)?;
|
||||||
|
|
||||||
DIGIT: [1-9][0-9]*;
|
DIGIT: [1-9][0-9]*;
|
||||||
|
|
||||||
|
|||||||
@ -87,7 +87,7 @@ public class ReviewRequirement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static String getValue(TerminalNode terminal) {
|
private static String getValue(TerminalNode terminal) {
|
||||||
return StringUtils.unescape(FenceAware.unfence(terminal.getText()));
|
return StringUtils.unescape(FenceAware.unfence(terminal.getText())).trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<User> getUsers() {
|
public List<User> getUsers() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user