-
Notifications
You must be signed in to change notification settings - Fork 58
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
Remove json field names #120
Conversation
Codecov Report
@@ Coverage Diff @@
## master #120 +/- ##
=======================================
Coverage 48.09% 48.09%
=======================================
Files 6 6
Lines 576 576
=======================================
Hits 277 277
Misses 282 282
Partials 17 17
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One suggestion, but otherwise LGTM
WordMatch bool `json:"wordmatch"` | ||
DisableNonWordPrefix bool `json:"disable_non_word_prefix"` | ||
DisableNonWordSuffix bool `json:"disable_non_word_suffix"` | ||
Name string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0/5 maybe keep the json tags to ensure they stay the same in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops cc @crspeller Thanks for fixing!
@iomodo I seem to be getting results that are quite different from the expected 1.1.1 behavior oulined here #115 (comment) I have deployed the code change from this PR and my config looks like this (note the chevrons
It looks like the input does not match the patterns and so auto-link is not doing anything at all. Any thoughts? |
@DHaussermann the problem might be the pattern string, it has too many slashes. Try these:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and passed
- Tested the input provided in the related issue and I see the desired output
- Tested to ensure enabling word match does not garble results with the sample input as mentioned in the issue
- Added a test for
DisableNonWordPrefix
to release testing to cover this case - Regression tested the feature here 8c82b7d that introduced the bug. No issues found with Jira plugin support.
LGTM!
Thanks @iomodo for the help on this one.
Summary
This PR will remove json field names in autolink struct.
Ticket Link
Fixes #115