mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-215990 Wrong capitalization in Settings > Editor > File Types
GitOrigin-RevId: ce0362b5395b8482cdedbf0e6d9a9e3f16228a18
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8d86848320
commit
2b013a2aec
@@ -798,7 +798,7 @@ public class StringUtil extends StringUtilRt {
|
||||
@Contract(pure = true)
|
||||
public static String capitalizeWords(@NotNull String text,
|
||||
boolean allWords) {
|
||||
return capitalizeWords(text, " \t\n\r\f", allWords, false);
|
||||
return capitalizeWords(text, " \t\n\r\f([<", allWords, true);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -263,6 +263,11 @@ public class StringUtilTest {
|
||||
StringUtil.wordsToBeginFromLowerCase("Let's Make Abbreviations Like I18n, SQL and CSS S SQ Sq"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCapitalizeWords() {
|
||||
assertEquals("AspectJ (Syntax Highlighting Only)", StringUtil.capitalizeWords("AspectJ (syntax highlighting only)", true));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEscapeStringCharacters() {
|
||||
assertEquals("\\\"\\n", StringUtil.escapeStringCharacters(3, "\\\"\n", "\"", false, new StringBuilder()).toString());
|
||||
|
||||
Reference in New Issue
Block a user