From: safir Date: Tue, 25 Mar 2008 12:13:48 +0000 (+0000) Subject: Исправил регэксп X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=89667c75001818612ff7456840d369954560e76a;p=oss%2Fstilllife.git Исправил регэксп --- diff --git a/templates/basicset/page.js b/templates/basicset/page.js index d4fad44..00aeebf 100644 --- a/templates/basicset/page.js +++ b/templates/basicset/page.js @@ -75,7 +75,7 @@ function getUserRights(user) { var hr=location.href.match(/^\w+:\/\/[^/]*\/([^?#]+)/); if(hr==null) return status; var depth=hr[1].split(/\//).length; - var re=new RegExp("\n\[\s*(admins|moderators|banned)\s*\]\s*\n"+user+"\n","m"); + var re=new RegExp("\n\[\s*(admins|moderators|banned)\s*\]\s*[^[]+\n"+user+"\n","m"); for(var path="",i=0;i