mirror of
https://github.com/nushell/nushell.git
synced 2025-06-24 03:41:26 +02:00
doc: comment update
This commit is contained in:
parent
53c94f8a06
commit
180cb856d5
@ -109,7 +109,7 @@ fn get_suggestions_by_value(
|
|||||||
current_span: reedline::Span,
|
current_span: reedline::Span,
|
||||||
) -> Vec<SemanticSuggestion> {
|
) -> Vec<SemanticSuggestion> {
|
||||||
let to_suggestion = |s: String, v: Option<&Value>| {
|
let to_suggestion = |s: String, v: Option<&Value>| {
|
||||||
// Check if the string needs quoting (has spaces or punctuation)
|
// Check if the string needs quoting
|
||||||
let value = if s.is_empty()
|
let value = if s.is_empty()
|
||||||
|| s.chars()
|
|| s.chars()
|
||||||
.any(|c: char| !(c.is_ascii_alphabetic() || ['_', '-'].contains(&c)))
|
.any(|c: char| !(c.is_ascii_alphabetic() || ['_', '-'].contains(&c)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user