summaryrefslogtreecommitdiff
path: root/assets/js/tokeninput.js
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-01-01 23:15:52 +0100
committerRicardo Wurmus <rekado@elephly.net>2023-01-01 23:15:52 +0100
commit89a592a6e1874fc97d887730baf24eb78b8c56d0 (patch)
tree6e8e8a4c87d3410207826b57551982dde8a229ce /assets/js/tokeninput.js
parentaa73af23eecac506144eda56a905d9a5fa42f6a3 (diff)
js: Do not finish token on space when inside a prefixed phrase.
Diffstat (limited to 'assets/js/tokeninput.js')
-rw-r--r--assets/js/tokeninput.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/tokeninput.js b/assets/js/tokeninput.js
index 41c8762..72a3c82 100644
--- a/assets/js/tokeninput.js
+++ b/assets/js/tokeninput.js
@@ -1254,7 +1254,7 @@
T.prototype.onSpace = function( e ) {
if ( this.options.spaceToAdd ) {
var val = this.getInputElementValue();
- if (val.startsWith('"')) {
+ if (val.startsWith('"') || (val.search(/:"/) !== -1)) {
if (val.endsWith('"')) {
this.onEnter( e );
}