We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd7a761 commit 964e981Copy full SHA for 964e981
1 file changed
src/main/kotlin/com/github/lppedd/cc/parser/specConventionalCommit.flex
@@ -56,7 +56,7 @@ package com.github.lppedd.cc.parser;
56
}
57
58
private boolean isWhitespace(final char ch) {
59
- return Character.isWhitespace(ch) || Character.isSpaceChar(ch);
+ return Character.getType(ch) == Character.SPACE_SEPARATOR || ch == '\t';
60
61
62
private CCToken token(final CCToken.Type type) {
@@ -72,7 +72,7 @@ package com.github.lppedd.cc.parser;
72
%}
73
74
NL = \r\n | \r | \n
75
-WS = [^\S\r\n]
+WS = [\p{Zs}\t]
76
77
// We allow footer types with spaces inside
78
FooterType = [^\s:][^:\r\n]*
0 commit comments