From 196afae4c8826339d5b1688f551e6d72efb7922a Mon Sep 17 00:00:00 2001 From: Leszek Pietrzak Date: Wed, 19 Dec 2018 12:15:04 +0100 Subject: [PATCH] Cleanup feedback strings to use consistent quotes --- src/feedback.coffee | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/feedback.coffee b/src/feedback.coffee index e83b25f8..5e55db1e 100644 --- a/src/feedback.coffee +++ b/src/feedback.coffee @@ -4,8 +4,8 @@ feedback = default_feedback: warning: '' suggestions: [ - "Use a few words, avoid common phrases" - "No need for symbols, digits, or uppercase letters" + 'Use a few words, avoid common phrases' + 'No need for symbols, digits, or uppercase letters' ] get_feedback: (score, sequence) -> @@ -59,21 +59,21 @@ feedback = ] when 'sequence' - warning: "Sequences like abc or 6543 are easy to guess" + warning: 'Sequences like abc or 6543 are easy to guess' suggestions: [ 'Avoid sequences' ] when 'regex' if match.regex_name == 'recent_year' - warning: "Recent years are easy to guess" + warning: 'Recent years are easy to guess' suggestions: [ 'Avoid recent years' 'Avoid years that are associated with you' ] when 'date' - warning: "Dates are often easy to guess" + warning: 'Dates are often easy to guess' suggestions: [ 'Avoid dates and years that are associated with you' ] @@ -103,14 +103,14 @@ feedback = suggestions = [] word = match.token if word.match(scoring.START_UPPER) - suggestions.push "Capitalization doesn't help very much" + suggestions.push 'Capitalization doesn\'t help very much' else if word.match(scoring.ALL_UPPER) and word.toLowerCase() != word - suggestions.push "All-uppercase is almost as easy to guess as all-lowercase" + suggestions.push 'All-uppercase is almost as easy to guess as all-lowercase' if match.reversed and match.token.length >= 4 - suggestions.push "Reversed words aren't much harder to guess" + suggestions.push 'Reversed words aren\'t much harder to guess' if match.l33t - suggestions.push "Predictable substitutions like '@' instead of 'a' don't help very much" + suggestions.push 'Predictable substitutions like "@" instead of "a" don\'t help very much' result = warning: warning