diff --git a/README.md b/README.md index 6408184..dd4117e 100755 --- a/README.md +++ b/README.md @@ -158,7 +158,7 @@ tg.router ```js tg.router .when( - new RegexpCommand(/test/g, 'testHandler'), + new RegexpCommand(new RegExp(/test/, 'g'), 'testHandler'), new TestController() ) ```