alibaba / alibaba/QLExpress

转义字符被吞得问题

Open
#301 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.6k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

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

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the provided addFunction and excute reproduction, focusing on how the script parses the string argument "hello\nworld" before it reaches the hello method. Trace the string-argument parsing path and add a regression test for preserving the escape character; done means the method receives the intended newline string rather than "hellonworld".

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.