diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-07-12 15:28:45 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-07-12 15:28:45 +0000 |
commit | d3f9744fddb68981968b6948c9e5e3bf662189ff (patch) | |
tree | 1a5b49baac13b62594c8e97a78c319a0ebe3efdf /demos/gtk-demo/geninclude.pl.in | |
parent | 44eb8d265a27a19d70a28582a3a0b0ff636bb1c2 (diff) | |
download | gtk+-d3f9744fddb68981968b6948c9e5e3bf662189ff.tar.gz |
Accept dashes in demo titles.
2005-07-12 Matthias Clasen <mclasen@redhat.com>
* demos/gtk-demo/geninclude.pl.in: Accept dashes in demo titles.
Diffstat (limited to 'demos/gtk-demo/geninclude.pl.in')
-rwxr-xr-x | demos/gtk-demo/geninclude.pl.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/gtk-demo/geninclude.pl.in b/demos/gtk-demo/geninclude.pl.in index fb81c96f04..b41e926684 100755 --- a/demos/gtk-demo/geninclude.pl.in +++ b/demos/gtk-demo/geninclude.pl.in @@ -35,7 +35,7 @@ for $file (@ARGV) { # generate a list of 'parent names' foreach $href (@demos) { - if ($href->{"title"} =~ m|^([\w\s]+)/[\w\s]+$|) { + if ($href->{"title"} =~ m|^([-\w\s]+)/[-\w\s]+$|) { my $parent_name = $1; my $do_next = 0; @@ -77,7 +77,7 @@ if (defined @parents) { next; } - if ($demos[$j]{"title"} =~ m|^$parents[$i]/([\w\s]+)$|) { + if ($demos[$j]{"title"} =~ m|^$parents[$i]/([-\w\s]+)$|) { if ($first) { $first = 0; } else { |