Merge branch 'swig_module_name_cr' into 'master'

swig: skip CR (\r) if present in module name

Closes #2350

See merge request ita1024/waf!2324
This commit is contained in:
ita1024 2021-04-29 06:19:08 +00:00
commit 7f1fdd36d5
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ tasks have to be added dynamically:
SWIG_EXTS = ['.swig', '.i']
re_module = re.compile(r'%module(?:\s*\(.*\))?\s+(.+)', re.M)
re_module = re.compile(r'%module(?:\s*\(.*\))?\s+([^\r\n]+)', re.M)
re_1 = re.compile(r'^%module.*?\s+([\w]+)\s*?$', re.M)
re_2 = re.compile(r'[#%](?:include|import(?:\(module=".*"\))+|python(?:begin|code)) [<"](.*)[">]', re.M)