Closed TomBurdge closed 2 days ago
@TomBurdge - I reckon the doc-string for that function is incorrect/not aligned.
If you see what's in README.md for that function, it matches with the functionality implemented.
I will try raising a PR to correct the doc-string.
FYI - @SemyonSinchenko and @MrPowers
take
Created a PR #231 for updating the doc-string.
The
anti_trim
function says its behaviour is as follows: "Remove whitespace from the boundaries ofcol
using the regexp_replace function"So, I would expect the function to do just that, restated: remove leading and trailing whitespace from the string. This description sounds much more like "trim" than "anti-trim". So, if I had " I like fish "", I would expect "I like fish"
However, the test for anti-trim for the above string returns " Ilikefish ".
Perhaps this is how it's meant to work? Although I'm not sure about the use case for this transformation if so.
I have raised as bug/docs because I am not sure if either: