Update DesignExtractor.cpp

stricter check