Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
c0e3a13f
Commit
c0e3a13f
authored
Jan 26, 2017
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
General: More regex fixes
parent
9bbd64a7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
neofetch
neofetch
+3
-3
No files found.
neofetch
View file @
c0e3a13f
...
@@ -583,7 +583,7 @@ get_de() {
...
@@ -583,7 +583,7 @@ get_de() {
# the desktop variables are sometimes also set to the
# the desktop variables are sometimes also set to the
# window manager name. This checks to see if WM == DE
# window manager name. This checks to see if WM == DE
# and dicards the DE value.
# and dicards the DE value.
[[ "
$wm
" && "
$de
" =~
$wm
]] && { unset -v de; return; }
[[ "
$wm
" && "
$de
" =~
^
$wm$
]] && { unset -v de; return; }
;;
;;
esac
esac
...
@@ -1966,7 +1966,7 @@ get_cols() {
...
@@ -1966,7 +1966,7 @@ get_cols() {
# IMAGES
# IMAGES
image_backend() {
image_backend() {
if [[ ! "$image_backend" =~
(off|ascii)
]]; then
if [[ ! "$image_backend" =~
^(off|ascii)$
]]; then
if ! type -p convert >/dev/null 2>&1; then
if ! type -p convert >/dev/null 2>&1; then
image_backend="ascii"
image_backend="ascii"
err "Image: Imagemagick not found, falling back to ascii mode."
err "Image: Imagemagick not found, falling back to ascii mode."
...
@@ -2019,7 +2019,7 @@ get_ascii() {
...
@@ -2019,7 +2019,7 @@ get_ascii() {
"
$image_source
" =~
\.
(png|jpg|jpe|jpeg|gif)
$
]]; then
"
$image_source
" =~
\.
(png|jpg|jpe|jpeg|gif)
$
]]; then
# Fallback to distro ascii mode if custom ascii isn't found.
# Fallback to distro ascii mode if custom ascii isn't found.
[[ ! "
$image_source
" =~ (auto|ascii)
$
]] &&
\
[[ ! "
$image_source
" =~
^
(auto|ascii)
$
]] &&
\
err "
Ascii: Ascii file not found, using distro ascii.
"
err "
Ascii: Ascii file not found, using distro ascii.
"
# Fallback to distro ascii mode if source is an image.
# Fallback to distro ascii mode if source is an image.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment