Changeset 36104

Show
Ignore:
Timestamp:
12/09/09 01:05:34 (4 years ago)
Author:
masa138
Message:

Fix RegExp? pattern

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/account_switcher.js

    r35701 r36104  
    88<updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/account_switcher.js</updateURL> 
    99<author mail="masa138@gmail.com" homepage="http://www.hatena.ne.jp/masa138/">Masayuki KIMURA</author> 
    10 <version>0.07</version> 
     10<version>0.08</version> 
    1111<detail><![CDATA[ 
    1212 
     
    181181                        params.push(value); 
    182182                    } else { 
    183                         res.responseText.match(new RegExp('(<[\\S\\s]*?name=\"' + value + '\"[\\S\\s]*?>)')); 
    184                         RegExp.$1.match(/value=\"([a-zA-Z0-9-_]+)\"/); 
     183                        res.responseText.match(new RegExp('<([^<>]*?name=\"' + value + '\"[^<>]*?)>')); 
     184                        RegExp.$1.match(/value=\"([\w-]+)\"/); 
    185185                        params.push(value + '=' + encodeURIComponent(RegExp.$1)); 
    186186                    }