LunaChat v1.5.0 : Bug fixed about none global channel env.

このコミットが含まれているのは:
ucchyocean committed 2013-04-29 06:30:43 +09:00
1 親 896705990d
コミット 8c40a411ed
5ファイル変更
+30 -19

検索条件に一致するファイルはありません

+14 -1
ファイルの表示
@@ -112,7 +112,20 @@ public class Utility {
* @param source 置き換え元の文字列
* @return 置き換え後の文字列
*/
public static String replaceColorCode(String source) {
protected static String replaceColorCode(String source) {
return source.replaceAll("&([0-9a-fk-or])", "\u00A7$1");
}
/**
* 指定された文字数のアスタリスクの文字列を返す
* @param length アスタリスクの個数
* @return 指定された文字数のアスタリスク
*/
protected static String getAstariskString(int length) {
StringBuilder buf = new StringBuilder();
for ( int i=0; i<length; i++ ) {
buf.append("*");
}
return buf.toString();
}
}