Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
title layout
Hono Github Issue 3254

@hono/github/issue-3254

https://github.com/honojs/hono/3254

Contents

Solution

Provided solution here https://github.com/honojs/hono/issues/3254#issuecomment-22794941300

app.get(
  "/slice/:acct",
  (c) => c.text(`acct is ${c.req.param("acct").slice(1)}`),
);
// or
app.get(
  "/regex/slice/:acct{@.+}",
  (c) => c.text(`acct is ${c.req.param("acct").slice(1)}`),
);

Setup

To clone:

git clone https://github.com/rjoydip/oss-issue-fix-collection.git
cd oss-issue-fix-collection/honojs/hono/github/3254

To run:

deno task dev

open http://localhost:8000

To test:

deno test

To benchmark:

deno bench