Commit 91195f67 authored by wenmo's avatar wenmo

修复 || 的美化问题

parent 54340813
......@@ -158,7 +158,8 @@ const FlinkSqlEditor = (props:any) => {
indent: ' '.repeat(options.tabSize)
});
formatted = formatted.replace(/` ([^`]*) `/g,function (){return '`'+arguments[1].trim()+'`'})
formatted = formatted.replace(/\$ {([^}]*)}/g,function (){return '${'+arguments[1].trim()+'}'})
.replace(/\$ {([^}]*)}/g,function (){return '${'+arguments[1].trim()+'}'})
.replace(/\| ([^}]*)\|/g,function (){return '|'+arguments[1].trim()+'|'})
return [
{
range: range,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment