正则表达式直接替换

This commit is contained in:
yuejiajun 2025-09-29 10:47:24 +08:00
parent 7a5627add7
commit 3402e89dd8
2 changed files with 15 additions and 3 deletions

View File

@ -8,7 +8,7 @@
<转弯方式>直接进近</转弯方式>
<转向方式>保持</转向方式>
<坡度>10</坡度>
<速度>250 m/s</速度>
<速度>250</速度>
<高度>500</高度>
<高度属性>相对高度</高度属性>
<升降率>-5</升降率>

View File

@ -13,7 +13,7 @@
"subLevels": [],
"valueConfigs": [
{
"comment": "航线点坐标",
"comment": "航线点坐标,通过自定义函数获取数据",
"valueName": "position",
"values": [
{
@ -43,7 +43,19 @@
]
},
{
"comment": "航线点类型",
"comment": "航线点坐标,通过正则表达式改变显示方式",
"valueName": "position",
"values": [
{
"combined": false,
"value": "{{任务航线.航线点坐标}}",
"regexPattern": "([0-9]+[\\.]{0,}[0-9]{0,}),([0-9]+[\\.]{0,}[0-9]{0,})",
"regexReplacement": "$1E $2N"
}
]
},
{
"comment": "航线点类型,由枚举提供具体数值",
"valueName": "waypoint_type",
"values": [
{