Parcourir la source

Remove capture group from titleization regex

Zed il y a 4 ans
Parent
commit
db74fa8893
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/routes/preferences.nim

+ 1 - 1
src/routes/preferences.nim

@@ -9,7 +9,7 @@ import ../views/[general, preferences]
 
 export preferences
 
-let reTitleize = re"(?<![A-z])([a-z])"
+let reTitleize = re"(?<![A-z])[a-z]"
 
 proc titleize(str: string): string =
   result = str