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
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
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 {
Escaping non-special characters in strings, template literals, and regular expressions doesn't have any effect.
"\'";
'\"';
"\#";
"\e";
`\"`;
`\"${foo}\"`;
`\#{foo}`;
/\!/;
/\@/;
"\"";
'\'';
"\x12";
"\u00a9";
"\371";
"xs\u2111";
`\``;
`\${${foo}}`;
`$\{${foo}}`;
/\/g;
/\t/g;
/\w\$\*\^\./;