diff --git a/gowin/main.cc b/gowin/main.cc index 38a67fcd..1473f3e8 100644 --- a/gowin/main.cc +++ b/gowin/main.cc @@ -55,7 +55,7 @@ po::options_description GowinCommandHandler::getArchOptions() std::unique_ptr GowinCommandHandler::createContext(dict &values) { - std::regex devicere = std::regex("GW1N(S?)[A-Z]*-(LV|UV|UX)([0-9])(C?).*"); + std::regex devicere = std::regex("GW1N([SZ]?)[A-Z]*-(LV|UV|UX)([0-9])(C?).*"); std::smatch match; std::string device = vm["device"].as(); if (!std::regex_match(device, match, devicere)) {