fixes in rep functions
This commit is contained in:
parent
798a63bb10
commit
e1c131e978
|
@ -394,7 +394,7 @@ function obj_xref(self,str)
|
|||
return str;
|
||||
end
|
||||
local s = stead.string.gsub(str, '\\?[\\{}]',
|
||||
{ ['{'] = '\001', ['}'] = '\002', [ '\\{' ] = '{', [ '\\}' ] = '}' }):gsub('\001([^\002]+)\002', xrefrep);
|
||||
{ ['{'] = '\001', ['}'] = '\002', [ '\\{' ] = '{', [ '\\}' ] = '}' }):gsub('\001([^\002]+)\002', xrefrep):gsub('[\001\002]', { ['\001'] = '{', ['\002'] = '}' });
|
||||
return s;
|
||||
end
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ __do_xact = function(str, self)
|
|||
end
|
||||
if type(str) ~= 'string' then return end
|
||||
local s = stead.string.gsub(str, '\\?[\\{}]',
|
||||
{ ['{'] = '\001', ['}'] = '\002' }):gsub('\001([^\002]+)\002', xrefrep);
|
||||
{ ['{'] = '\001', ['}'] = '\002' }):gsub('\001([^\002]+)\002', xrefrep):gsub('[\001\002]', { ['\001'] = '{', ['\002'] = '}' });
|
||||
return s;
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue