mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 19:08:45 +08:00
修复filter参数中存在变量的用法问题 (#1833)
This commit is contained in:
parent
f508d799ae
commit
d0aec7adf6
@ -718,7 +718,7 @@ export const resolveVariableAndFilter = (
|
||||
|
||||
// 先只支持一层吧
|
||||
finalKey = finalKey.replace(
|
||||
/(\\|\\\$)?\$(?:((?:\w+\:)?[a-zA-Z0-9_.][a-zA-Z0-9_.\[\]]*)|{([^}{]+)})/g,
|
||||
/(\\|\\\$)?\$(?:([a-zA-Z0-9_.][a-zA-Z0-9_.\[\]]*)|{([^}{]+)})/g,
|
||||
(_, escape) => {
|
||||
return escape
|
||||
? _.substring(1)
|
||||
|
Loading…
Reference in New Issue
Block a user