Quick fix of whitespace issue
@@ -51,6 +51,7 @@ impl error::Error for DiceParseError {
// Parses a dice string, of the type "1d6+3", "3d8-4" or "1d20".
#[cfg(feature = "parsing")]
pub fn parse_dice_string(dice: &str) -> Result<DiceType, DiceParseError> {
+ let dice = &dice.split_whitespace().collect::<Vec<_>>().join("");
lazy_static! {
static ref DICE_RE: Regex = Regex::new(r"(\d+)d(\d+)([\+\-]\d+)?").unwrap();
}
