From eea729f6b68954f69af2954b0c8009e9c647ae29 Mon Sep 17 00:00:00 2001 From: N1ebieski Date: Sat, 18 Jul 2020 15:32:59 +0200 Subject: [PATCH 1/2] Allow a space in pasted tags Currently after pasting a few words with spaces (for example: katalog stron, reklama strony www, reklama, indeks polskich stron), tags look like this: katalogstron, reklamastronywww, reklama, indekspolskichstron I suggest replace spaces to one or remove line value = value.replace(/\s/g, ''); --- src/jquery.tagsinput-revisited.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery.tagsinput-revisited.js b/src/jquery.tagsinput-revisited.js index f6ccf6d..804fe8c 100644 --- a/src/jquery.tagsinput-revisited.js +++ b/src/jquery.tagsinput-revisited.js @@ -249,7 +249,7 @@ var value = $(event.data.fake_input).val(); value = value.replace(/\n/g, ''); - value = value.replace(/\s/g, ''); + value = value.replace(/\s/g, ' '); var tags = _splitIntoTags(event.data.delimiter, value); From e31e05debd298aefe292a96005ece2a2d233bd05 Mon Sep 17 00:00:00 2001 From: N1ebieski Date: Sat, 1 Aug 2020 12:25:47 +0200 Subject: [PATCH 2/2] Semantic versioning --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 37156bd..18f360e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jquery.tagsinput-revisited", - "version": "2.1", + "version": "2.1.0", "description": "Revisited version of popular jQuery Tags Input Plugin", "main": "jquery.tagsinput-revisited", "directories": {