aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-10-04 11:13:58 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-10-04 11:27:20 +0200
commite3bea785c711d8c01e7319b17420d31d1d04cd2c (patch)
treeea44277fbbfa6602f731233afe03f18d96983e8f
parentd462bbdaa2b54d696d7708e431f4d4039b570d4b (diff)
downloadidea_caseconv-e3bea785c711d8c01e7319b17420d31d1d04cd2c.tar.gz
idea_caseconv-e3bea785c711d8c01e7319b17420d31d1d04cd2c.tar.bz2
idea_caseconv-e3bea785c711d8c01e7319b17420d31d1d04cd2c.zip
Split words on '.' to allow conversion *from* dot.case
-rw-r--r--src/main/java/me/laria/code/idea_caseconv/WordSplitConverter.java2
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();