From 41228054840d13884117066f828c13cdd756d54f Mon Sep 17 00:00:00 2001 From: hun0975 Date: Mon, 4 Dec 2017 15:54:18 +0900 Subject: [PATCH] jshint warning(missing semicolon) missing semicolon! So just add a semicolon --- lib/icu.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/icu.js b/lib/icu.js index f6e91ff..a719c7e 100644 --- a/lib/icu.js +++ b/lib/icu.js @@ -7,17 +7,17 @@ window.icu = window.icu || new Object(); var icu = window.icu; - icu.getCountry = function() { return "" }; - icu.getCountryName = function() { return "" }; + icu.getCountry = function() { return ""; }; + icu.getCountryName = function() { return ""; }; icu.getDateFormat = function(formatCode) { var retVal = {}; retVal.format = df[formatCode]; return retVal; }; icu.getDateFormats = function() { return df; }; icu.getDateFormatSymbols = function() { return dfs; }; icu.getDecimalFormat = function(places) { var retVal = {}; retVal.format = function(n) { var ns = n < 0 ? Math.abs(n).toFixed(places) : n.toFixed(places); var ns2 = ns.split('.'); s = ns2[0]; var d = ns2[1]; var rgx = /(\d+)(\d{3})/;while(rgx.test(s)){s = s.replace(rgx, '$1' + nfs["grouping_separator"] + '$2');} return (n < 0 ? nfs["minus"] : "") + s + nfs["decimal_separator"] + d;}; return retVal; }; icu.getDecimalFormatSymbols = function() { return nfs; }; icu.getIntegerFormat = function() { var retVal = {}; retVal.format = function(i) { var s = i < 0 ? Math.abs(i).toString() : i.toString(); var rgx = /(\d+)(\d{3})/;while(rgx.test(s)){s = s.replace(rgx, '$1' + nfs["grouping_separator"] + '$2');} return i < 0 ? nfs["minus"] + s : s;}; return retVal; }; - icu.getLanguage = function() { return "fr" }; - icu.getLanguageName = function() { return "français" }; - icu.getLocale = function() { return "fr" }; - icu.getLocaleName = function() { return "français" }; + icu.getLanguage = function() { return "fr"; }; + icu.getLanguageName = function() { return "français"; }; + icu.getLocale = function() { return "fr"; }; + icu.getLocaleName = function() { return "français"; }; -})(); \ No newline at end of file +})();