Fixed logic to properly find RO Tokens in text.
Fixed logic when searching for annotations so that the results can be selected.
This commit is contained in:
@@ -7178,11 +7178,14 @@ WHILE (LEN(@text) > 0)
|
||||
IF @index = 0
|
||||
BREAK
|
||||
DECLARE @index2 int
|
||||
SET @index2 = CHARINDEX('>' , @text)
|
||||
SET @index2 = @index + CHARINDEX('>' , substring(@text,@index,len(@text)))
|
||||
if @index2 = 0
|
||||
BREAK
|
||||
INSERT INTO @Tokens VALUES (substring(@text, @index,1+@index2-@index))
|
||||
SET @text = RIGHT(@text, (LEN(@text) - @index2))
|
||||
INSERT INTO @Tokens VALUES (substring(@text, @index,@index2-@index))
|
||||
if(len(@text) > @index2)
|
||||
SET @text = RIGHT(@text, (LEN(@text) - @index2))
|
||||
else
|
||||
SET @Text = ''
|
||||
END
|
||||
RETURN
|
||||
END
|
||||
|
Reference in New Issue
Block a user