Skip to content

Commit 08e6bac

Browse files
committed
update rules
1 parent cbdf940 commit 08e6bac

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/rules.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
export const noopTest = { exec: () => null } as unknown as RegExp;
1+
const noopTest = { exec: () => null } as unknown as RegExp;
22

3-
export function edit(regex: string | RegExp, opt?: string) {
3+
function edit(regex: string | RegExp, opt = '') {
44
let source = typeof regex === 'string' ? regex : regex.source;
5-
opt = opt || '';
65
const obj = {
76
replace: (name: string | RegExp, val: string | RegExp) => {
87
let valSource = typeof val === 'string' ? val : val.source;
@@ -16,9 +15,6 @@ export function edit(regex: string | RegExp, opt?: string) {
1615
};
1716
return obj;
1817
}
19-
/**
20-
* Other Rules
21-
*/
2218

2319
export const other = {
2420
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,

0 commit comments

Comments
 (0)