mirror of
https://github.com/nushell/nushell.git
synced 2025-01-24 15:19:29 +01:00
651e86a3c0
# Description `uniq -i` does not convert output strings to lowercase. Also, `uniq -i` did not ignore case in strings below the first level of Tables and Records. Now all strings case are ignored for all children Values for tables, Records, and List. Fixes https://github.com/nushell/nushell/issues/7192 # Tests + Formatting About the issue https://github.com/nushell/nushell/issues/7192, the output will be: ``` 〉[AAA BBB CCC] | uniq -i ╭───┬─────╮ │ 0 │ AAA │ │ 1 │ BBB │ │ 2 │ CCC │ ╰───┴─────╯ ``` About ignoring case for all children string, I expect this to be true: ``` ([[origin, people]; [World, ( [[name, meal]; ['Geremias', {plate: 'bitoque', carbs: 100}] ] )], [World, ( [[name, meal]; ['Martin', {plate: 'bitoque', carbs: 100}] ] )], [World, ( [[name, meal]; ['Geremias', {plate: 'Bitoque', carbs: 100}] ] )], ] | uniq -i ) == ([[origin, people]; [World, ( [[name, meal]; ['Geremias', {plate: 'bitoque', carbs: 100}] ] )], [World, ( [[name, meal]; ['Martin', {plate: 'bitoque', carbs: 100}] ] )] ]) ``` |
||
---|---|---|
.. | ||
commands | ||
format_conversions | ||
main.rs |