The regex is bad. It basically catches everything. Here's the diff for that line to a version that works correctly:
- if re.search(r'CS_PUBLIC|CS_RETCODE %s' % func, text): + if re.search(r'(CS_PUBLIC|CS_RETCODE) %s' % func, text):
Thanks!
Log in to post a comment.