Преглед изворни кода

Fixes https://github.com/jupyterlab/jupyterlab/issues/3725 (#3791)

Afshin Darian пре 7 година
родитељ
комит
60cd2b3c51
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/completer/src/handler.ts

+ 1 - 1
packages/completer/src/handler.ts

@@ -272,7 +272,7 @@ class CompletionHandler implements IDisposable {
     }
 
     // If the part of the line before the cursor is white space, return.
-    if (line.slice(0, position.column).match(/^\W*$/)) {
+    if (line.slice(0, position.column).match(/^\s*$/)) {
       this._enabled = false;
       model.reset(true);
       host.classList.remove(COMPLETER_ENABLED_CLASS);