B2018-007 vefn_RemoveExtraText needed to be changed to support superscripts and subscripts.

This commit is contained in:
Rich 2018-01-18 14:19:47 +00:00
parent 5a321fc7d3
commit 89a9519caa

View File

@ -5907,6 +5907,11 @@ if(@includeRtfFormatting=0)
SET @text = Replace(@text, '\super ', '');
SET @text = Replace(@text, '\sub ', '');
SET @text = Replace(@text, '\nosupersub ', '');
SET @text = Replace(@text, '\up2 ', '');
SET @text = Replace(@text, '\up0 ', '');
SET @text = Replace(@text, '\up3 ', '');
SET @text = Replace(@text, '\dn2 ', '');
SET @text = Replace(@text, '\dn3 ', '');
SET @text = Replace(@text, '\b0', '');
SET @text = Replace(@text, '\b', '');
SET @text = Replace(@text, '\ul0', '');
@ -5916,6 +5921,11 @@ if(@includeRtfFormatting=0)
SET @text = Replace(@text, '\super', '');
SET @text = Replace(@text, '\sub', '');
SET @text = Replace(@text, '\nosupersub', '');
SET @text = Replace(@text, '\up2', '');
SET @text = Replace(@text, '\up0', '');
SET @text = Replace(@text, '\up3', '');
SET @text = Replace(@text, '\dn2', '');
SET @text = Replace(@text, '\dn3', '');
END
if(@includeSpecialCharacters=0)
-- Remove Special Characters
@ -13789,8 +13799,8 @@ BEGIN TRY -- Try Block
set nocount on
DECLARE @RevDate varchar(255)
DECLARE @RevDescription varchar(255)
set @RevDate = '9/30/2017 8:00 AM'
set @RevDescription = 'Enhanced Export Import'
set @RevDate = '1/16/2018 3:32 PM'
set @RevDescription = 'Fixed Search to find text including superscripts'
Select cast(@RevDate as datetime) RevDate, @RevDescription RevDescription
PRINT 'SQL Code Revision ' + @RevDate + ' - ' + @RevDescription
IF( @@TRANCOUNT > 0 ) COMMIT