From 9c957d7da19ac31a50bd6f9a61fa4d10b09de90c Mon Sep 17 00:00:00 2001 From: Pete Higgins Date: Tue, 5 May 2020 17:33:49 -0700 Subject: Replace non-word "whitespaces" with "whitespace". Signed-off-by: Pete Higgins --- lib/chef/resource/locale.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/chef/resource/locale.rb') diff --git a/lib/chef/resource/locale.rb b/lib/chef/resource/locale.rb index bb4f6628e2..0c3e3a90ef 100644 --- a/lib/chef/resource/locale.rb +++ b/lib/chef/resource/locale.rb @@ -45,7 +45,7 @@ class Chef property :lang, String, description: "Sets the default system language.", regex: [LOCALE_REGEX], - validation_message: "The provided lang is not valid. It should be a non-empty string without any leading whitespaces." + validation_message: "The provided lang is not valid. It should be a non-empty string without any leading whitespace." property :lc_env, Hash, description: "A Hash of LC_* env variables in the form of `({ 'LC_ENV_VARIABLE' => 'VALUE' })`.", @@ -59,7 +59,7 @@ class Chef end end unless h.values.all? { |x| x =~ LOCALE_REGEX } - error_msg = "Values of option lc_env should be non-empty string without any leading whitespaces." + error_msg = "Values of option lc_env should be non-empty string without any leading whitespace." raise Chef::Exceptions::ValidationFailed, error_msg end h -- cgit v1.2.1