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

转义字符被吞得问题 #301

Open
ouyanglong721 opened this issue Nov 23, 2023 · 1 comment
Open

转义字符被吞得问题 #301

ouyanglong721 opened this issue Nov 23, 2023 · 1 comment

Comments

@ouyanglong721
Copy link

传入一个带有转义字符的字符串作为方法参数,在qlexpress里面进行方法调用将字符串作为参数传入,转义符号会被吞。
简要代码 例:
expressRunner.addFunction(“hello”);
script=hello(“hello\nworld”)
expressRunner.excute(script);

在hello方法中接收换行字符串,结果字符串中的\被吞,只剩hellonworld

@DQinYuan
Copy link
Collaborator

image

目前对转义字符的处理逻辑是,去除 "\x" 前面的 \,变成 "x"。所以不支持换行转义,\n 也会变成 n

这个是已知问题,下个小版本修复

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