diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-10-04 11:13:58 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-10-04 11:27:20 +0200 |
commit | e3bea785c711d8c01e7319b17420d31d1d04cd2c (patch) | |
tree | ea44277fbbfa6602f731233afe03f18d96983e8f /src/main/java/me/laria | |
parent | d462bbdaa2b54d696d7708e431f4d4039b570d4b (diff) | |
download | idea_caseconv-e3bea785c711d8c01e7319b17420d31d1d04cd2c.tar.gz idea_caseconv-e3bea785c711d8c01e7319b17420d31d1d04cd2c.tar.bz2 idea_caseconv-e3bea785c711d8c01e7319b17420d31d1d04cd2c.zip |
Split words on '.' to allow conversion *from* dot.case
Diffstat (limited to 'src/main/java/me/laria')
-rw-r--r-- | src/main/java/me/laria/code/idea_caseconv/WordSplitConverter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/me/laria/code/idea_caseconv/WordSplitConverter.java b/src/main/java/me/laria/code/idea_caseconv/WordSplitConverter.java index 9b87a25..1c3070f 100644 --- a/src/main/java/me/laria/code/idea_caseconv/WordSplitConverter.java +++ b/src/main/java/me/laria/code/idea_caseconv/WordSplitConverter.java @@ -9,7 +9,7 @@ class WordSplitConverter { Pattern decamelize = Pattern.compile("(?<![A-Z])[A-Z]"); s = decamelize.matcher(s).replaceAll(" $0"); - String[] all_parts = s.split("[\\s_-]"); + String[] all_parts = s.split("[\\s_.-]"); ArrayList<String> parts = new ArrayList<>(); for (String p : all_parts) { p = p.trim(); |