Bug fix matching CPU number

Change-Id: Ie75eb87cf06cd7bad5f17ce121ea64037c0e4788
diff --git a/cmsis.cmake b/cmsis.cmake
index daa8132..c7922c4 100644
--- a/cmsis.cmake
+++ b/cmsis.cmake
@@ -17,7 +17,7 @@
 #
 
 # Extract the CPU number from the system processor
-string(REGEX REPLACE "^cortex-m([0-9]+[a-z]*)" "\\1" CPU_NUMBER ${CMAKE_SYSTEM_PROCESSOR})
+string(REGEX REPLACE "^cortex-m([0-9]+[a-z]*).*" "\\1" CPU_NUMBER ${CMAKE_SYSTEM_PROCESSOR})
 if(NOT CPU_NUMBER)
     message(FATAL_ERROR "System processor '${CMAKE_SYSTEM_PROCESSOR}' not supported. Should be cortex-m<nr>.")
 endif()