Skip to content

Commit d926d47

Browse files
committed
Merge pull request select2#525 from t0m/master
Trivial change: pluralize default inputTooShort function
2 parents 66ca108 + ca98ce5 commit d926d47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2379,7 +2379,7 @@ the specific language governing permissions and limitations under the Apache Lic
23792379
},
23802380
formatResultCssClass: function(data) {return undefined;},
23812381
formatNoMatches: function () { return "No matches found"; },
2382-
formatInputTooShort: function (input, min) { return "Please enter " + (min - input.length) + " more characters"; },
2382+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " more character" + (n == 1? "" : "s"); },
23832383
formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); },
23842384
formatLoadMore: function (pageNumber) { return "Loading more results..."; },
23852385
formatSearching: function () { return "Searching..."; },

0 commit comments

Comments
 (0)