【发布时间】:2020-08-15 07:24:42
【问题描述】:
我正在寻找一些测试被注释的文件列表
// beforeEach(async(() => {
// beforeEach(async(() => {
// beforeEach(async(() => {
// beforeEach(async(() => {
\/\/( ){0,}beforeEach\(async\(\(\) => \{$
工作正常,...但在终端内我得到了
git grep "\/\/( ){0,}beforeEach\(async\(\(\) => \{$"
fatal: command line, '\/\/( ){0,}beforeEach\(async\(\(\) => \{$': Unmatched \{
【问题讨论】:
-
如果您需要符合 POSIX BRE 的正则表达式,您需要知道如何将 regex101 正则表达式“转换”为那些。试试
git grep "// *beforeEach(async(() => {$" -
谢谢!!!它有效!
标签: regex git typescript git-grep