Procházet zdrojové kódy

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

Afshin Darian před 7 roky
rodič
revize
60cd2b3c51
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);