Mercurial > hg > Members > anatofuz > anatofuz-tools
changeset 1:85f5eada6707
fix regex for yomitan
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Nov 2018 08:54:23 +0900 |
parents | 78df974566a7 |
children | 3656bdd46f54 |
files | hg-browse |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/hg-browse Mon Nov 12 19:56:42 2018 +0900 +++ b/hg-browse Tue Nov 13 08:54:23 2018 +0900 @@ -42,9 +42,7 @@ my $mid_path = 'index.cgi/home/hg/'; my $url; - if ($input =~ m[jp//home/hg/y(\d+)(.+)]){ - $url = $http_domain . "y$1/".$mid_path."y$1".$2; - } elsif ($input =~ m[ssh://.*yomitan.*//home/hg/y(\d+)(.*)] ){ + if ($input =~ m[.*//home/hg/y(\d+)(.+)]){ $url = $http_domain . "y$1/".$mid_path."y$1".$2; } @cmd = ('open',$url);