mirror of
https://codeberg.org/scip/note.git
synced 2025-12-17 04:31:02 +01:00
fixed invalid regexp
This commit is contained in:
6
bin/note
6
bin/note
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
#
|
#
|
||||||
# note - console notes management with database and encryption support.
|
# note - console notes management with database and encryption support.
|
||||||
# Copyright (C) 1999-2015 T.v.Dein (see README for details!)
|
# Copyright (C) 1999-2016 T.v.Dein (see README for details!)
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
# This program is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU General Public License
|
# modify it under the terms of the GNU General Public License
|
||||||
@@ -144,7 +144,7 @@ $CONF = File::Spec->catfile($ENV{HOME}, ".noterc");
|
|||||||
$USER = getlogin || getpwuid($<);
|
$USER = getlogin || getpwuid($<);
|
||||||
chomp $USER;
|
chomp $USER;
|
||||||
$TOPIC = 1;
|
$TOPIC = 1;
|
||||||
$version = "1.3.22";
|
$version = "1.3.23";
|
||||||
$CurDepth = 1; # the current depth inside the topic "directory" structure...
|
$CurDepth = 1; # the current depth inside the topic "directory" structure...
|
||||||
$maxlen = "auto";
|
$maxlen = "auto";
|
||||||
$timelen = 22;
|
$timelen = 22;
|
||||||
@@ -1416,7 +1416,7 @@ sub format {
|
|||||||
else {
|
else {
|
||||||
$note =~ s/\*\*([^\*]{2,})\*\*/$BN$1$_BN/g;
|
$note =~ s/\*\*([^\*]{2,})\*\*/$BN$1$_BN/g;
|
||||||
$note =~ s/__([^_]{2,})__/$UN$1$_UN/g;
|
$note =~ s/__([^_]{2,})__/$UN$1$_UN/g;
|
||||||
$note =~ s/{{([^}]{2,})}}/$IN$1$_IN/g;
|
$note =~ s/\{\{([^}]{2,})\}\}/$IN$1$_IN/g;
|
||||||
$note =~ s#//([^/]{2,})//#<hide>$1</hide>#g;
|
$note =~ s#//([^/]{2,})//#<hide>$1</hide>#g;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user