From dfbc5c9b2756396968ed36fd04b1b34953dbf87e Mon Sep 17 00:00:00 2001 From: Erik Brommers <1458944+eb1@users.noreply.github.com> Date: Fri, 16 Aug 2024 13:36:31 -0700 Subject: [PATCH] Fix auto-caps inside punctuation Capital source text inside punctuation wasn't being processed properly -- fixed. --- www/js/views/AdaptViews.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/views/AdaptViews.js b/www/js/views/AdaptViews.js index 00e83fbf..4220156d 100644 --- a/www/js/views/AdaptViews.js +++ b/www/js/views/AdaptViews.js @@ -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;