Skip to content

Commit d5e4eb0

Browse files
committed
Исправление логики
1 parent 766bd63 commit d5e4eb0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/cls/iKnowDoc/Search/Domain.cls

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ ClassMethod GetSimilar(SearchString) As %Status
2020
for i=1:1:10 {
2121
set оrd = $order(Result(i),1,Data)
2222
if $li(Result(i),4)>2 {
23-
if ( ($FIND($li(Data,2),"--")=0) || ($FIND($li(Data,2),"|")=0) ) {
24-
set string =$li(Data,2)
25-
} else {
23+
if ($FIND($li(Data,2),"--")'=0) {
24+
set string =" "
25+
} elseif ($FIND($li(Data,2),"|")'=0) {
2626
set string =" "
27+
} else {
28+
set string =$li(Data,2)
2729
}
2830
} else {
2931
set string =" "

0 commit comments

Comments
 (0)