From 183f824577100f535f445045fbb978e2d4dd47ce Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Wed, 14 Dec 2016 14:51:32 -0500 Subject: [PATCH] fix comments grammar --- sanitizer/_mount_saint_fort_standardizer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sanitizer/_mount_saint_fort_standardizer.js b/sanitizer/_mount_saint_fort_standardizer.js index 72e8aa10..3bcf817d 100644 --- a/sanitizer/_mount_saint_fort_standardizer.js +++ b/sanitizer/_mount_saint_fort_standardizer.js @@ -33,8 +33,7 @@ function sanitize(raw, clean) { // 2. transliterate 'saint'->'st', etc const transliterated = periods_removed.replace(mountSaintFort, transliterate); - // 3. whitespace-normalize by replacing much whitespace with a space and trimming - // duplicate whitespace can be introduced when removing periods + // 3. reduce whitespace sequences that can occur when removing periods down to a single space const whitespace_normalized = _.trimEnd(transliterated.replace(/\s+/, ' ')); clean.parsed_text.city = whitespace_normalized;