Fixed the regular expression to support negative numbers.
Also bumped version to 0.1.2 (beta)
[[package]]
name = "evpf"
-version = "0.1.0"
+version = "0.1.1"
dependencies = [
"colored",
"regex",
[package]
name = "evpf"
-version = "0.1.1"
+version = "0.1.2"
authors = ["Harishankar <v.harishankar@gmail.com>"]
edition = "2018"
// collect the command line arguments - if any
let args : Vec<String> = env::args().collect ();
// regular expression to match a number
- let match_num = Regex::new (r"^\d+?\.*?\d*?$").unwrap ();
+ let match_num = Regex::new (r"^\-?\d+?\.*?\d*?$").unwrap ();
if args.len () > 1 {
// if arguments are provided run in command line mode - i.e. print the