summaryrefslogtreecommitdiffstats
path: root/Bash/weechatlog
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2019-04-02 00:08:29 +0200
committerThomas Lange <code@nerdmind.de>2019-04-02 00:08:29 +0200
commit31000dec7040800c2a918b1194fffc8ff85736a1 (patch)
treed9bd4456b68e4186265ff2109543c9f95205da68 /Bash/weechatlog
parente4951db8b4ce100ea216c4d5569830550925c52c (diff)
downloadsnippets-31000dec7040800c2a918b1194fffc8ff85736a1.tar.gz
snippets-31000dec7040800c2a918b1194fffc8ff85736a1.tar.xz
snippets-31000dec7040800c2a918b1194fffc8ff85736a1.zip
Bugfix: Regular expression
Diffstat (limited to 'Bash/weechatlog')
-rwxr-xr-xBash/weechatlog2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bash/weechatlog b/Bash/weechatlog
index a1d7f04..ade12b8 100755
--- a/Bash/weechatlog
+++ b/Bash/weechatlog
@@ -33,7 +33,7 @@ done; shift $((OPTIND-1))
PATTERN_DATE="\([0-9]*\)-\([0-9]*\)-\([0-9]*\)" # References: 1, 2, 3
PATTERN_TIME="\([0-9]*\):\([0-9]*\):\([0-9]*\)" # References: 4, 5, 6
-PATTERN="${PATTERN_DATE} ${PATTERN_TIME}\t\([^\s]*\)\t\(.*\)"
+PATTERN="${PATTERN_DATE} ${PATTERN_TIME}\t\([^ ]*\)\t\(.*\)"
#===============================================================================
# Replace part