Skip to content

Commit

Permalink
Ustream/Justin文字列における正規表現フラグiを付加
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul committed Feb 2, 2012
1 parent b4cce7d commit 82c72be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asukachTopicBot.js
Expand Up @@ -115,7 +115,7 @@ function parseTopic ( topic )
for ( i in streams )
{
// 接頭辞(Ust01だのJus02だの)を探す
regExp = new RegExp ( "^" + streams[i].name );
regExp = new RegExp ( "^" + streams[i].name, "i" );
result = channelTopic.substring(endBracket).search( regExp );
if ( -1 == result )
{
Expand Down Expand Up @@ -262,7 +262,7 @@ function testCommandStreamClose ()
{
for ( st in streams )
{
re = new RegExp ( "^" + streams[st].nameRegExp + titleBracketOpen + titleBracketClose + "$" );
re = new RegExp ( "^" + streams[st].nameRegExp + titleBracketOpen + titleBracketClose + "$", "i" );
if ( true == re.test ( ctStreamClose[ct] ) )
{
success = success + ct + "-" + st + " ";
Expand Down

0 comments on commit 82c72be

Please sign in to comment.