提交 dd5335ab 编写于 作者: H huybrechts

fix JIRA unit test -- $ in title

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16116 71c3de6d-444a-0410-be80-ed276b4c234a
上级 2935258e
......@@ -171,13 +171,18 @@ public class MarkupText extends AbstractMarkupText {
} else if (ch == '$') {// replace by group
i++;
ch = s.charAt(i);
// get the group number
int groupId = s.charAt(i) - '0';
int groupId = ch - '0';
if (groupId < 0 || groupId > 9) {
buf.append('$').append(ch);
} else {
// add the group text
String group = group(groupId);
if (group != null)
buf.append(group);
}
// add the group text
String group = group(groupId);
if (group != null)
buf.append(group);
} else {
// other chars
buf.append(ch);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册