Skip to content

Commit

Permalink
fixed the regex again...
Browse files Browse the repository at this point in the history
  • Loading branch information
agentzh committed Mar 10, 2011
1 parent e53feb9 commit 631d599
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion grammar/cheater.grammar
Expand Up @@ -80,7 +80,7 @@ type_definition: 'type' <commit> type '=' type domain(?) attribute(s?)
['type', $item[3], $item[4], $item[5], $item[6]] }
| <error?> <reject>

regex: /\/(?:[^\\]|\\.)*\//
regex: /\/(?:[^\\\/]|\\.)*\//
{ my $regex = 'qr' . $item[1];
my $re = eval $regex;
if ($@) {
Expand Down
11 changes: 6 additions & 5 deletions t/text.t
Expand Up @@ -282,14 +282,15 @@ users
--- src
table users (
name text /http:\/\/[a-z]{3}\d{2}/ not null unique;
age integer /\d{4}/ not null;
)
4 users;
--- out
users
name
http://wpu38
http://tgk85
http://cok98
http://ylu09
name age
http://wpu38 1584
http://tgk85 1772
http://cok98 9564
http://ylu09 4619

0 comments on commit 631d599

Please sign in to comment.