refactor: rename paths

This commit is contained in:
wancat committed 2024-03-07 00:50:42 +08:00
1 parent e5f5590a67
commit b5e20766a3
12 files changed
+52 -52

No files matched your search

@@ -0,0 +1,13 @@
import { Command } from '../types.js'
import { Matcher } from './Matcher.js'
export class OutputMatcher implements Matcher {
private matcher: RegExp
constructor(pattern: string, args?: string) {
this.matcher = new RegExp(pattern, args)
}
match(command: Command): boolean {
return !!command.output && this.matcher.test(command.output.trim())
}
}