@@ -45,23 +45,23 @@ bool is_number_signed(const std::string &);
45
45
int count_char (string domain, char character);
46
46
vector<string> split (const string &, char );
47
47
48
- void print_header ()
49
- {
50
- // courtesy of http://www.patorjk.com/software/taag/#p=display&f=Epic&t=FastSub
51
- std::string header = R"sep(
48
+ void print_header ()
49
+ {
50
+ // courtesy of http://www.patorjk.com/software/taag/#p=display&f=Epic&t=FastSub
51
+ std::string header = R"sep(
52
52
53
53
▓█████▄ ███▄ █ ██████ ▄████▄ ▓█████ █ █░ ██▓
54
54
▒██▀ ██▌ ██ ▀█ █ ▒██ ▒ ▒██▀ ▀█ ▓█ ▀ ▓█░ █ ░█░▓██▒
55
55
░██ █▌▓██ ▀█ ██▒░ ▓██▄ ▒▓█ ▄ ▒███ ▒█░ █ ░█ ▒██░
56
56
░▓█▄ ▌▓██▒ ▐▌██▒ ▒ ██▒▒▓▓▄ ▄██▒▒▓█ ▄ ░█░ █ ░█ ▒██░
57
57
░▒████▓ ▒██░ ▓██░▒██████▒▒▒ ▓███▀ ░░▒████▒░░██▒██▓ ░██████▒
58
- ▒▒▓ ▒ ░ ▒░ ▒ ▒ ▒ ▒▓▒ ▒ ░░ ░▒ ▒ ░░░ ▒░ ░░ ▓░▒ ▒ ░ ▒░▓ ░
59
-
60
- Michael Skelton (@codingo_)
61
- Luke Stephens (@hakluke)
62
- Sajeeb Lohani (@sml555_)
63
- )sep" ;
64
- spdlog::info (" {}\n " , header);
58
+ ▒▒▓ ▒ ░ ▒░ ▒ ▒ ▒ ▒▓▒ ▒ ░░ ░▒ ▒ ░░░ ▒░ ░░ ▓░▒ ▒ ░ ▒░▓ ░
59
+
60
+ Michael Skelton (@codingo_)
61
+ Luke Stephens (@hakluke)
62
+ Sajeeb Lohani (@sml555_)
63
+ )sep" ;
64
+ spdlog::info (" {}\n " , header);
65
65
}
66
66
67
67
int main (int argc, char **argv)
@@ -129,7 +129,14 @@ void process_range()
129
129
{
130
130
if (is_number (*split))
131
131
{
132
- int n = stoi (*split);
132
+ int n;
133
+ try {
134
+ n = stoi (*split);
135
+ }
136
+ catch (...) {
137
+ continue ;
138
+ }
139
+ // int n = stoi(*split);
133
140
int lower = 0 ;
134
141
int upper = 0 ;
135
142
if (range == 0 )
@@ -512,4 +519,4 @@ void error_fatal(string message)
512
519
{
513
520
spdlog::error (" ERROR: {}. Exiting" , message);
514
521
exit (1 );
515
- }
522
+ }
0 commit comments