Skip to content

Commit

Permalink
lint MARC
Browse files Browse the repository at this point in the history
  • Loading branch information
adam3smith committed Mar 15, 2024
1 parent 69d7a53 commit df5954e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MARC.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function glueTogether(part1, part2, delimiter) {
return part1 + ' ' + part2;
}
// we only add the delimiter, if part1 is not ending with a punctation
if (part1.search(/[?:,.!;]\s*$/) > -1) {
if (/[?:,.!;]\s*$/.test(part1)) {
return part1 + ' ' + part2;
}
return part1 + delimiter + part2;
Expand Down

0 comments on commit df5954e

Please sign in to comment.