提交 4aa523b7 编写于 作者: K kohsuke

added a method to detect multi-line string. Used in views.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1917 71c3de6d-444a-0410-be80-ed276b4c234a
上级 94fadaa0
......@@ -307,4 +307,8 @@ public class Functions {
public static String getWin32ErrorMessage(IOException e) {
return Util.getWin32ErrorMessage(e);
}
public static boolean isMultiline(String s) {
return s.indexOf('\r')>=0 || s.indexOf('\n')>=0;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册