Skip to content

Commit

Permalink
Fix auto-caps inside punctuation
Browse files Browse the repository at this point in the history
Capital source text inside punctuation wasn't being processed properly -- fixed.
  • Loading branch information
eb1 committed Aug 16, 2024
1 parent 7a989c0 commit dfbc5c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/views/AdaptViews.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ define(function (require) {
targetIdx = 0,
optionsIdx = 0,
result = null,
source = model.get('source');
source = this.stripPunctuation(model.get('source'), true); // strip any leading puncts
// If we aren't capitalizing for this project, just return the target (unaltered)
if (project.get('AutoCapitalization') === 'false' || project.get('SourceHasUpperCase') === 'false') {
return target;
Expand Down

0 comments on commit dfbc5c9

Please sign in to comment.