简体   繁体   English

如何在Atom中禁用正则表达式

[英]How to disable regex in Atom

I am new to stackoverflow and this is my first question ever. 我是stackoverflow的新手,这是我有史以来的第一个问题。

I have the problem that if I want to use a pathname that anything that starts with \\s or any regex identifier gets keyed out and that I can't use the pathnime. 我有一个问题,如果我想使用以\\ s或任何正则表达式标识符开头的任何东西都被键入的路径名,并且我不能使用该路径名。 I googled for a while and also checked a few stackoverflow question but I couldn't find anything, could be due to bad searching with keywords or there is nothing. 我搜索了一段时间,还检查了一些stackoverflow问题,但我找不到任何东西,可能是由于关键字搜索错误或没有任何结果。

Using node.js and javascript for this. 为此使用node.js和javascript。

sftp.connect({
  host: '*******',
  port: '*******',
  username: '*******',
  password: '*******'
}).then(() =>{
  return sftp.list('C:\servers\squad_server\SquadGame\ServerConfig');
}).then(data => {
  console.log(data, 'the data info');
}).catch(err =>{
  console.log(err, 'catch error');
});

我只是用/而不是\\,不知道在目录中您可以这样做!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM