Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

look-behind requires fixed-width pattern #82

Open
jschewebbn opened this issue Jan 28, 2022 · 0 comments
Open

look-behind requires fixed-width pattern #82

jschewebbn opened this issue Jan 28, 2022 · 0 comments

Comments

@jschewebbn
Copy link

Using python2.7 with the head from tracboat I get the following error.

  File "/home/bbn-admin/tracboat/src/tracboat/migrate.py", line 29, in _wikiconvert
    return trac2down.convert(text, basepath, multiline, note_map=note_map, attachments_path=attachments_path, svn2git_revisions=svn2git_revisions)
  File "/home/bbn-admin/tracboat/src/tracboat/trac2down.py", line 219, in convert
    line = re.sub(r'\[(?<!!|wiki:)([A-Z][a-z]+[a-z0-9]*[A-Z][^\ \]]*)\]', r'[\1](\1)', line) # [WikiName] format
  File "/home/bbn-admin/tracboat/VENV/lib64/python2.7/re.py", line 151, in sub
    return _compile(pattern, flags).sub(repl, string, count)
  File "/home/bbn-admin/tracboat/VENV/lib64/python2.7/re.py", line 242, in _compile
    raise error, v # invalid expression
sre_constants.error: look-behind requires fixed-width pattern

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant