mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-08-04 02:07:53 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user