Fixed issue with mock generation for a file that contains a period before the final extension (e.g. some_protobuf.pb-c.h)

This commit is contained in:
Greg Williams
2015-03-12 08:38:26 -04:00
parent b6289dfcba
commit 3494561c6c
+1 -1
View File
@@ -28,7 +28,7 @@ class CMockGenerator
def create_mock(module_name, parsed_stuff)
@module_name = module_name
@mock_name = @prefix + @module_name
@clean_mock_name = @mock_name.gsub(/(?:-|\s+)/, "_")
@clean_mock_name = @mock_name.gsub(/(?:-|\.\s+)/, "_")
create_mock_header_file(parsed_stuff)
create_mock_source_file(parsed_stuff)
end