alist icon indicating copy to clipboard operation
alist copied to clipboard

正则表达式中的 `^` 不工作

Open clansty opened this issue 3 years ago • 3 comments

Please make sure of the following things

  • [X] I have read the documentation.
  • [X] I'm sure there are no duplicate issues or discussions.
  • [X] I'm sure it's due to alist and not something else(such as Dependencies or Operational).
  • [X] I'm sure I'm using the latest version

Alist Version / Alist 版本

3.2.1

Driver used / 使用的存储驱动

任意

Describe the bug / 问题描述

正则表达式中的 ^ 无法工作,即匹配文件名的开头

Reproduction / 复现链接

在全局设置的隐藏文件中添加 /^\./ 来隐藏 . 开头的文件,不工作

若使用 /\..*,则所有带 . 的文件全都会隐藏

Logs / 日志

clansty avatar Oct 24 '22 14:10 clansty

Thanks for opening your first issue here! Be sure to follow the issue template!

welcome[bot] avatar Oct 24 '22 14:10 welcome[bot]

全局设置的隐藏文件中的正则表达式test的是文件的全部路径,要隐藏所有.开头的文件:

/\/\./i

xhofe avatar Oct 24 '22 15:10 xhofe

哦这样啊,谢谢

clansty avatar Oct 24 '22 16:10 clansty

Hello @Clansty, your issue is invalid and will be closed. 你好 @Clansty,你的issue无效,将被关闭。

github-actions[bot] avatar Oct 25 '22 07:10 github-actions[bot]

全局设置的隐藏文件中的正则表达式test的是文件的全部路径,要隐藏所有.开头的文件:

/\/\./i

这样写有没有问题 ^\.

paowan2 avatar Nov 27 '22 08:11 paowan2