RuiSiang / PoW-Shield

Found unnecessary escape characters JS-0097
Anti-pattern
Minor
8 months ago8 months old
Unnecessary escape character: \-
20  })
21
22  it('should contain "Ray ID"', async () => {
23    expect(await page.content()).toMatch(/Ray ID\: [0-9a-f]+\-[0-9]+/)24  })
25})
26
Unnecessary escape character: \:
20  })
21
22  it('should contain "Ray ID"', async () => {
23    expect(await page.content()).toMatch(/Ray ID\: [0-9a-f]+\-[0-9]+/)24  })
25})
26
Unnecessary escape character: \/
49        if (ctx.request.url == '/') {
50          ctx.redirect('/pow')
51          return
52        } else if (RegExp(`^\/pow`).test(ctx.request.url)) {53          await next()
54          return
55        } else {