From 15f52909ed1cc30da69d95e34a063c3ab9003a4a Mon Sep 17 00:00:00 2001 From: Anton Davydov Date: Fri, 6 Feb 2015 00:15:53 +0300 Subject: [PATCH] Replace multiline regexp matchers to string matchers --- README.de.md | 2 +- README.es.md | 2 +- README.fr.md | 2 +- README.hu.md | 2 +- README.ja.md | 2 +- README.ko.md | 2 +- README.md | 2 +- README.pt-br.md | 2 +- README.pt-pt.md | 2 +- README.ru.md | 2 +- README.zh.md | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.de.md b/README.de.md index a45a857a..923a62a6 100644 --- a/README.de.md +++ b/README.de.md @@ -203,7 +203,7 @@ end Routen mit regulären Ausdrücken sind auch möglich: ```ruby -get /^\/hallo\/([\w]+)$/ do +get /\A\/hallo\/([\w]+)\z/ do "Hallo, #{params['captures'].first}!" end ``` diff --git a/README.es.md b/README.es.md index 6fe0ed64..99fbd987 100644 --- a/README.es.md +++ b/README.es.md @@ -117,7 +117,7 @@ end Rutas con Expresiones Regulares: ``` ruby -get /^\/hola\/([\w]+)$/ do +get /\A\/hola\/([\w]+)\z/ do "Hola, #{params['captures'].first}!" end ``` diff --git a/README.fr.md b/README.fr.md index 20e794e2..8035175e 100644 --- a/README.fr.md +++ b/README.fr.md @@ -207,7 +207,7 @@ end Une route peut aussi être définie par une expression régulière : ``` ruby -get /^\/bonjour\/([\w]+)$/ do +get /\A\/bonjour\/([\w]+)\z/ do "Bonjour, #{params['captures'].first} !" end ``` diff --git a/README.hu.md b/README.hu.md index b7a6b8df..ff67ac2d 100644 --- a/README.hu.md +++ b/README.hu.md @@ -88,7 +88,7 @@ Az útvonalmintákban szerepelhetnek joker paraméterek is, melyeket a Reguláris kifejezéseket is felvehetünk az útvonalba: ```ruby - get /^\/hello\/([\w]+)$/ do + get /\A\/hello\/([\w]+)\z/ do "Helló, #{params['captures'].first}!" end ``` diff --git a/README.ja.md b/README.ja.md index ebed4afd..843caf88 100644 --- a/README.ja.md +++ b/README.ja.md @@ -207,7 +207,7 @@ end ルーティングを正規表現にマッチさせることもできます。 ``` ruby -get /^\/hello\/([\w]+)$/ do +get /\A\/hello\/([\w]+)\z/ do "Hello, #{params['captures'].first}!" end ``` diff --git a/README.ko.md b/README.ko.md index 0563d3cd..b1f85920 100644 --- a/README.ko.md +++ b/README.ko.md @@ -206,7 +206,7 @@ end 라우터는 정규표현식으로 매치할 수 있습니다. ``` ruby -get /^\/hello\/([\w]+)$/ do +get /\A\/hello\/([\w]+)\z/ do "Hello, #{params['captures'].first}!" end ``` diff --git a/README.md b/README.md index 8d2c3fd4..bcce5ee4 100644 --- a/README.md +++ b/README.md @@ -207,7 +207,7 @@ end Route matching with Regular Expressions: ``` ruby -get /^\/hello\/([\w]+)$/ do +get /\A\/hello\/([\w]+)\z/ do "Hello, #{params['captures'].first}!" end ``` diff --git a/README.pt-br.md b/README.pt-br.md index 13e31558..daae84f9 100644 --- a/README.pt-br.md +++ b/README.pt-br.md @@ -119,7 +119,7 @@ end Rotas podem casar com expressões regulares: ``` ruby -get /^\/ola\/([\w]+)$/ do +get /\A\/ola\/([\w]+)\z/ do "Olá, #{params['captures'].first}!" end ``` diff --git a/README.pt-pt.md b/README.pt-pt.md index f9ec65a8..474d50ab 100644 --- a/README.pt-pt.md +++ b/README.pt-pt.md @@ -88,7 +88,7 @@ end Rotas correspondem-se com expressões regulares: ``` ruby -get /^\/ola\/([\w]+)$/ do +get /\A\/ola\/([\w]+)\z/ do "Olá, #{params['captures'].first}!" end ``` diff --git a/README.ru.md b/README.ru.md index 6d2034f0..b9d39278 100644 --- a/README.ru.md +++ b/README.ru.md @@ -121,7 +121,7 @@ end Регулярные выражения в качестве шаблонов маршрутов: ```ruby -get /^\/hello\/([\w]+)$/ do +get /\A\/hello\/([\w]+)\z/ do "Hello, #{params['captures'].first}!" end ``` diff --git a/README.zh.md b/README.zh.md index ec0bf821..6ed584db 100644 --- a/README.zh.md +++ b/README.zh.md @@ -108,7 +108,7 @@ end 通过正则表达式匹配的路由: ~~~~ ruby -get /^\/hello\/([\w]+)$/ do +get /\A\/hello\/([\w]+)\z/ do "Hello, #{params['captures'].first}!" end ~~~~