Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

中划线与减号冲突 #375

Open
cloud-jie opened this issue Feb 27, 2025 · 1 comment
Open

中划线与减号冲突 #375

cloud-jie opened this issue Feb 27, 2025 · 1 comment

Comments

@cloud-jie
Copy link

例子1:
express4Runner.execute(" hello( X-Signature ) ", context, qqq);

例子2:
Object result = express4Runner.execute(" X-Signature = hello() ", context, qqq);

遗憾的是,我无法修改参数名称,不知道有什么方式可以让 类似 X-Signature 这种带中划线的参数正确解析而不报错

使用的版本:4.0.0-beta.3

@DQinYuan
Copy link
Collaborator

DQinYuan commented Mar 5, 2025

改成下划线呢?

另一个不太推荐的方案就是用 ${} 包括参数

Object result = express4Runner.execute("${X-Signature} = hello() ", context, qqq);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants