mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-24 08:43:25 +01:00
-
is not a legal character in variable name
This commit is contained in:
parent
1f10d846a3
commit
12fa2cb1eb
@ -65,7 +65,7 @@ impl FromStr for Matcher {
|
|||||||
type Err = anyhow::Error;
|
type Err = anyhow::Error;
|
||||||
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||||
use MatcherSegment as Seg;
|
use MatcherSegment as Seg;
|
||||||
static VAR_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r"\$\{([\w\d_\-]+)\}").unwrap());
|
static VAR_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r"\$\{([\w\d_]+)\}").unwrap());
|
||||||
|
|
||||||
let mut segments = vec![];
|
let mut segments = vec![];
|
||||||
let mut text_start = 0;
|
let mut text_start = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user