mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
generate_descriptor_pages.main.kts: Fix case when an element link is before an attribute link
This commit is contained in:
parent
5c671df2e5
commit
35a4c71f96
@ -399,7 +399,7 @@ fun String.cleanupElementLinks(): String {
|
||||
}
|
||||
|
||||
fun String.removeAttributeLinks(): String {
|
||||
val attributeLinkRegex = Regex("\\[(.*?)]\\(#attribute:.*?\\)")
|
||||
val attributeLinkRegex = Regex("\\[([^\\[\\]]*?)]\\(#attribute:.*?\\)")
|
||||
return attributeLinkRegex.replace(this) { matchResult ->
|
||||
matchResult.groupValues[1]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user