Skip to content

Commit

Permalink
rm check on DEM names beginning with a number
Browse files Browse the repository at this point in the history
  • Loading branch information
nwagenbrenner committed Jul 21, 2018
1 parent d37ade3 commit 98a354c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/ninja/ninja.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4942,9 +4942,6 @@ void ninja::checkInputs()

//check for invalid characters in DEM name
std::string s = std::string(CPLGetBasename(input.dem.fileName.c_str()));
//if(s.find_first_of("0123456789") == 0){
// throw std::runtime_error("The DEM name cannot start with a number.");
//}
if(s.find_first_of("/\\:;\"'") != std::string::npos){
throw std::runtime_error("The DEM name contains an invalid character."
" The DEM name cannot contain the following characters: / \\ : ; \" '.");
Expand Down

0 comments on commit 98a354c

Please sign in to comment.