Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/generation/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ use std::borrow::Cow;
use regex::Regex;

/// Checks if the provided word is a word that could be a list.
/// Assumes the provided string is one word and doesn't have whitespace.
pub fn is_list_word(word: &str) -> bool {
debug_assert!(!word.chars().any(|c| c.is_whitespace()));

if word == "*" || word == "-" || word == "+" {
true
} else {
Expand Down
4 changes: 4 additions & 0 deletions tests/specs/General/CharacterEscapes_All.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@

And (\`) backticks and dollar signs (\$).

Non-breaking spaces like this : : should not break.

[expect]
- **--allow-net=\<allow-net\>** Testing.

And (\`) backticks and dollar signs (\$).

Non-breaking spaces like this : : should not break.