[PATCH] RegisterTypeLib: only cut off non-empty \[0-9]+$ resource-id