-
I think in your regex using
\w, which is onlya-zA-Z0-9_, you need to use unicode properties orPattern.compile(regex, Pattern.UNICODE_CHARACTER_CLASS)to match letters of any language. Using\Xmight also do the trick.See:
https://stackoverflow.com/questions/10894122/java-regex-for-support-unicode
-
Hm maybe this could also seen as an improvement rather than a bug. I think many regex in OneDev will likely use
\wand thus are only matching against US ASCII compatible text and not against Unicode letters of any language. -
Thanks for the investigation. Will fix this in next patch release.
-
OneDev
changed state to 'Closed' 3 years ago
Previous Value Current Value Open
Closed
-
State changed as code fixing the issue is committed (e6104f76)
-
OneDev
changed state to 'Released' 3 years ago
Previous Value Current Value Closed
Released
-
State changed as build #3638 is successful
| Type |
Bug
|
| Priority |
Normal
|
| Assignee | |
| Affected Versions |
8.2.0
|
Issue Votes (0)
Enable conventional commits, add type
fixand leave scopes empty to allow any scope.Pushing commit
fix(ä): öfails with messageLine 1: Subject is expected of format: <type>[optional scope][!]: <description>Pushing commit
fix(a): öworks.So only scope seems to be affected and maybe type (haven't tested it).
Also the error message might be a bit misleading because it does not show brackets
()around the optional scope. Maybe it should be more like<type>[(<scope>)][!]: <description>.