Skip to content

Exceptions not working in substitution extension? #782

Answered by daobrien
daobrien asked this question in Q&A
Discussion options

You must be logged in to vote

This seems to work:

swap:
  (?<!when |initial |a |default |root |your )login: log in
  you login: you log in
  log into: log in to
  logout (?:off|from): log out of
  logging into: logging in to
  logging out from: logging out of

I had to fiddle it about a bit, and without being able to capture groups I had to write extra tests (hint hint 😄 ) but it seems to be doing all the right things.

Thanks again.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@daobrien
Comment options

@daobrien
Comment options

Answer selected by daobrien
@jdkato
Comment options

@daobrien
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants