From 014df3e7c16786ca4efcd0e233c7406507046882 Mon Sep 17 00:00:00 2001 From: Andrey Makarov Date: Thu, 21 Oct 2021 00:47:11 +0300 Subject: [PATCH] add a note in strutils.nimIdentNormalize --- lib/pure/strutils.nim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim index 873949ca6745a..2234a8625eb1f 100644 --- a/lib/pure/strutils.nim +++ b/lib/pure/strutils.nim @@ -273,6 +273,11 @@ func nimIdentNormalize*(s: string): string = ## ## That means to convert to lower case and remove any '_' on all characters ## except first one. + ## + ## .. Warning:: Backticks (`) are not handled: they remain *as is* and + ## spaces are preserved. See `nimIdentBackticksNormalize + ## `_ for + ## an alternative approach. runnableExamples: doAssert nimIdentNormalize("Foo_bar") == "Foobar" result = newString(s.len)