ircparser 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ircparser/error.rb +6 -1
- data/lib/ircparser/source.rb +1 -1
- data/lib/ircparser.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca17530277754676389fe66fb2d9cf7a3a4542a0
|
4
|
+
data.tar.gz: e99d76bc5489e5018252c94feed5c1a9f7321600
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f596aef553fc6571fd830fe89f5763d4e95c02c850c8bd69a8ca6142bb03318efdad876948e6ade7544d16df9600077edeb279f0d0ad8c4f76fbb6cdfa5118db
|
7
|
+
data.tar.gz: a3c21a80748ec07c9be0ac257b12ced140e03736e2d56683adde323d26f633e88030950ca879c09623208b1b5f62cf1ac0265cbdf92c35035a2be8955881cbfb
|
data/lib/ircparser/error.rb
CHANGED
data/lib/ircparser/source.rb
CHANGED
@@ -19,7 +19,7 @@ module IRCParser
|
|
19
19
|
class Source
|
20
20
|
|
21
21
|
# Internal: A regular expression which matches a n!u@h mask.
|
22
|
-
MATCH_USER = /^(?<nick>[
|
22
|
+
MATCH_USER = /^(?<nick>[^@!]+) (?:!(?<user>[^@]+))? (?:@(?<host>.+))?$/x
|
23
23
|
|
24
24
|
# Internal: A regular expression which matches a server name.
|
25
25
|
MATCH_SERVER = /^(?<host>\S+\.\S+)$/
|
data/lib/ircparser.rb
CHANGED