mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 06:30:52 +00:00
better regex
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@78 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -10,8 +10,8 @@ sub sentence {
|
||||
my $str = $_[0];
|
||||
$str =~ s/([^\.])$/\1./g;
|
||||
$str =~ s/`(.+?)`/<code>\1<\/code>/g;
|
||||
$str =~ s/\*\*\*(.+?)\*\*\*/<b><i>\1<\/i><\/b>/g;
|
||||
$str =~ s/\*\*(.+?)\*\*/<b>\1<\/b>/g;
|
||||
$str =~ s/\*{3}(.+?)\*{3}/<b><i>\1<\/i><\/b>/g;
|
||||
$str =~ s/\*{2}(.+?)\*{2}/<b>\1<\/b>/g;
|
||||
$str =~ s/\*(.+?)\*/<i>\1<\/i>/g;
|
||||
return $str;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user