File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
src/main/kotlin/com/github/oldmegit/goframehelper Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ object Mime : TagValue {
99 )
1010
1111 override val separator: String
12- get() = " , "
12+ get() = " "
1313}
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ object Validation : TagValue {
6767 )
6868
6969 override val separator: String
70- get() = " , "
70+ get() = " | "
7171
7272 private fun getTail (key : String ): String {
7373 return GfValidationBundle .getMessage(key)
Original file line number Diff line number Diff line change @@ -139,11 +139,15 @@ class ApiTagProvider: GfProvider() {
139139 val tagValue = valueObject[current] ? : return
140140 val list = tagValue.list
141141 val separator = tagValue.separator
142+ var valueStartIndex = - 1
142143
143- var valueStartIndex = prefix.lastIndexOf(separator)
144+ if (separator != " " ) {
145+ valueStartIndex = prefix.lastIndexOf(separator)
146+ }
144147 if (valueStartIndex == - 1 ) {
145148 valueStartIndex = prefix.lastIndexOf(" \" " )
146149 }
150+
147151 val valuePrefixOfTag = prefix.substring(valueStartIndex + 1 ).lowercase()
148152
149153 for ((k, v) in list) {
You can’t perform that action at this time.
0 commit comments