ruby-changes:22787
From: knu <ko1@a...>
Date: Tue, 28 Feb 2012 00:11:11 +0900 (JST)
Subject: [ruby-changes:22787] knu:r34836 (trunk): Paranoia: /^/ -> /\A/ in regexp in rdoc. Pointed out by nobu.
knu 2012-02-28 00:11:00 +0900 (Tue, 28 Feb 2012) New Revision: 34836 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34836 Log: Paranoia: /^/ -> /\A/ in regexp in rdoc. Pointed out by nobu. Modified files: trunk/string.c Index: string.c =================================================================== --- string.c (revision 34835) +++ string.c (revision 34836) @@ -6777,8 +6777,8 @@ * standard library function <code>crypt(3)</code> with the given * salt string. While the format and the result are system and * implementation dependent, using a salt matching the regular - * expression <code>^[a-zA-Z0-9./]{2}</code> should be safe and valid - * on any platform, in which only the first two characters are + * expression <code>\A[a-zA-Z0-9./]{2}</code> should be valid and + * safe on any platform, in which only the first two characters are * significant. * * This method is for use in system specific scripts, so if you want -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/