Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add cleanup activity for URL field #9970
Add cleanup activity for URL field #9970
Changes from 11 commits
a8a1251
07973f7
e251b39
ef5ff9d
00dd484
a586e68
d572905
940c3ec
9c83833
7b3878e
d69d98c
7db3f62
07db0a6
846dda5
3b8b5db
907d774
e48c418
583917b
dbb41af
ec6ff74
0a0ce4f
c8d45b3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
No space before final dot of a sentence.
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.
This won't work. in call cases. Maybe remove it - or fix it with maybe checking for regex "^, " - so that
,
appears at the beginning of the line AND is followed by a space.Examples for note content:
And some other strings one cannot forsee. Thus, simply removing all commas will produce wrong content.
I agree, this happens in edge cases. If you don't find a quick solution, keep as is.
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.
@koppor, three proposed solutions here:
url
is preceded or followed by a commaOverall, I could go with the first proposed solution as is more effective and covers plenty of cases
Also added a test case for:
\url{http://example.org}, cited by Kramer, 2002.
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.
The fist one looks good, you can also add a comment before the RegEx to explain it
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.
No comment necessary - the comment is in
URLCleanup
class - similar to the other cleanup jobs.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.
These changes will be overwritten. You need to go to Crowdin service to update issues at the translations.
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.
Space before opening brace in English text
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.
These values are used only ones. Please inline them below.
Background: We aim to keep expected and actual togeher so that one can read them easily. Using this array approach, reading will get difficult. See one inline-proposal below
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.
@koppor So I follow this approach expected/actual together, as well for the other expected entries (e.g.,
expectedWithTwoNoteValues
andexpectedWithMultipleURLs
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.