TG-3344 Comment is edited if you cancel add link dialog
When dialog is canceled, the result will be null because there is no start of link "<<<" inserted. In this case we shouldn't search for the end of the link and just return.stable
parent
2a4b3ab81a
commit
bec7472c19
|
@ -149,6 +149,8 @@ MarkitupDirective = ($rootscope, $rs, $selectedText, $template, $compile, $trans
|
||||||
startIndex = result.index
|
startIndex = result.index
|
||||||
break
|
break
|
||||||
|
|
||||||
|
return if !result
|
||||||
|
|
||||||
regex = />>>/gi
|
regex = />>>/gi
|
||||||
endIndex = 0
|
endIndex = 0
|
||||||
loop
|
loop
|
||||||
|
|
Loading…
Reference in New Issue