diff options
Diffstat (limited to 'TAO/CIAO/CIDLC/ServantGenerator.cpp')
-rw-r--r-- | TAO/CIAO/CIDLC/ServantGenerator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TAO/CIAO/CIDLC/ServantGenerator.cpp b/TAO/CIAO/CIDLC/ServantGenerator.cpp index 1f85a107600..ca55ca2938f 100644 --- a/TAO/CIAO/CIDLC/ServantGenerator.cpp +++ b/TAO/CIAO/CIDLC/ServantGenerator.cpp @@ -154,7 +154,7 @@ ServantGenerator::compute_export_macro (const fs::path& file_path) // Replace the suffix. export_macro_ = regex::perl_s (export_macro_, - "/^(.+?)(\\.(IDL|CIDL|CDL))?$/$1_SVNT_Export/"); + "/(\\.(IDL|CIDL|CDL))?$/_SVNT_Export/"); // Replace any remaining '.' in the string with '_'. export_macro_ = regex::perl_s (export_macro_, @@ -176,7 +176,7 @@ ServantGenerator::configure_stream (string const& suffix_option, default_suffix); string file_expr = cl_.get_value (regex_option, - "/^(.+?)(\\.(idl|cidl|cdl))?$/$1" + file_suffix + "/"); + "/(\\.(idl|cidl|cdl))?$/" + file_suffix + "/"); string file_name = regex::perl_s (file_name_, file_expr); |