XR for Universal Blue and Fedora Atomic Desktops
vr fedora-atomic linux
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix function validity check in axr

+3 -2
+3 -2
src/axr.nu.in
··· 17 17 } else if $list or ($function | is-empty) { 18 18 print-functions 19 19 } else { 20 - # Make sure the function is valid to avoid unhelpful error messages (doesn't check flags) 21 - if ($function | str replace -r " -.*" '') in (get-functions | append (get-aliases)) { 20 + # Make sure the function is valid to avoid unhelpful error messages 21 + # This regex checks if $function starts with anything in get-functions 22 + if $function like $"^\(?:(get-functions | str join '|')\)" { 22 23 nu -c $"/@AXR_LIB@/; atomic-xr ($function)" 23 24 } else { 24 25 log error $"Invalid function: `($function)`"