Skip to content

Commit

Permalink
Make sure delimiter clears current and default delimiters.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakelezz authored and arqunis committed Apr 6, 2019
1 parent 1e50d30 commit 3f81cf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/framework/standard/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ impl Configuration {
self
}

/// Sets a delimiter to be used when splitting the content after a command.
/// Sets a single delimiter to be used when splitting the content after a command.
///
/// **Note**: Defaults to a vector with a single element of `" "`.
///
Expand All @@ -465,6 +465,7 @@ impl Configuration {
/// .delimiter(", ")));
/// ```
pub fn delimiter(mut self, delimiter: &str) -> Self {
self.delimiters.clear();
self.delimiters.push(delimiter.to_string());

self
Expand Down

0 comments on commit 3f81cf3

Please sign in to comment.