[subbu@earth lib] echo '[[foo|foo bar]]' | node parse.js --wt2wt
[[foo|foo]] bar
[subbu@earth lib] echo '[[foo|foob]]' | node parse.js --wt2wt
[[foo|foo]]b
commit 11dee5a needs tweaking.
Version: unspecified
Severity: normal
[subbu@earth lib] echo '[[foo|foo bar]]' | node parse.js --wt2wt
[[foo|foo]] bar
[subbu@earth lib] echo '[[foo|foob]]' | node parse.js --wt2wt
[[foo|foo]]b
commit 11dee5a needs tweaking.
Version: unspecified
Severity: normal
Also, worth adding additional parser tests to catch future regressions on these kinds of links.
Patch submitted: https://gerrit.wikimedia.org/r/42682
Also, test: https://gerrit.wikimedia.org/r/42699