Skip to content

Commit

Permalink
Reduce the amount of changes with respect to the master branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoconni committed Feb 9, 2025
1 parent bd6be49 commit 0d153f8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/input_output/string_utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,9 @@ double atof_locale_c(const string& input)
static const std::regex number_format(R"(^\s*[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?\s*$)");
const char* first = input.c_str();

while (*first) {
if (!isspace(*first)) break;
first++;
}

// Skip leading whitespaces
while (isspace(*first)) ++first;

if (!*first) {
InvalidNumber e("Expecting a numeric attribute value, but only got spaces");
cerr << e.what() << endl;
Expand Down

0 comments on commit 0d153f8

Please sign in to comment.