mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 01:02:14 +00:00
Make XsdDocumentedTests Parsing More Lenient
Closes gh-9830
This commit is contained in:
parent
8400b841e9
commit
68f91edbb8
@ -201,13 +201,13 @@ public class XsdDocumentedTests {
|
||||
docAttrName = id.substring(0, id.length() - 8);
|
||||
currentDocAttrNameToElmt = docAttrNameToParents;
|
||||
}
|
||||
else if (docAttrName != null && !id.startsWith(docAttrName)) {
|
||||
else if (id.endsWith("-attributes") || docAttrName != null && !id.startsWith(docAttrName)) {
|
||||
currentDocAttrNameToElmt = null;
|
||||
docAttrName = null;
|
||||
}
|
||||
}
|
||||
if (docAttrName != null && currentDocAttrNameToElmt != null) {
|
||||
String expression = "^\\* <<(nsa-.*),.*>>$";
|
||||
String expression = ".*<<(nsa-.*),.*>>.*";
|
||||
if (line.matches(expression)) {
|
||||
String elmtId = line.replaceAll(expression, "$1");
|
||||
currentDocAttrNameToElmt.computeIfAbsent(docAttrName, (key) -> new ArrayList<>()).add(elmtId);
|
||||
|
Loading…
x
Reference in New Issue
Block a user