Fix an instance where bad output like this was produced:

as-path-set as-set51-deny
end-set
,
ios-regex '^(_1239)+(_7018)+_'
end-set
exit
as-path-set as-set51-deny
end-set
,

ios-regex '^(_1239)+(_3549)+_'
end-set

corrected output is:
as-path-set as-set51-deny
ios-regex '^(_1239)+(_7018)+_',
ios-regex '^(_1239)+(_3549)+_'
end-set