Changeset 27401 in spip-zone for _acotes_


Ignore:
Timestamp:
Mar 17, 2009, 10:23:21 PM (10 years ago)
Author:
denisb@…
Message:

une regexp plus ciblée

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _acotes_/irc/Edgard.pl

    r27399 r27401  
    9191                        if ($text =~ /$lckey/)
    9292                        {
    93                                 if ($text =~ /^[@#\[](\d+|[a-z_]{3,})\b/) # [commit, #ticket ou @doc
     93                                if ($text =~ /^[@#\[](\d+\b|([a-z0-9_]{3,})(?=\(\)))/) # [commit, #ticket ou @doc
    9494                                {
    9595                                        $conn->privmsg($channel, "hop $hash{$key}".$1); # var url
Note: See TracChangeset for help on using the changeset viewer.