summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/geninclude.pl.in
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-07-12 15:28:45 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-07-12 15:28:45 +0000
commitd3f9744fddb68981968b6948c9e5e3bf662189ff (patch)
tree1a5b49baac13b62594c8e97a78c319a0ebe3efdf /demos/gtk-demo/geninclude.pl.in
parent44eb8d265a27a19d70a28582a3a0b0ff636bb1c2 (diff)
downloadgtk+-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-xdemos/gtk-demo/geninclude.pl.in4
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 {