diff options
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 67cea60..eef5537 100644 --- a/src/main.rs +++ b/src/main.rs | |||
| @@ -10,7 +10,7 @@ type Blocks<'a> = HashMap<&'a str,&'a str>; | |||
| 10 | 10 | ||
| 11 | fn build(blocks: &Blocks, entry: &str) -> String { | 11 | fn build(blocks: &Blocks, entry: &str) -> String { |
| 12 | lazy_static! { | 12 | lazy_static! { |
| 13 | static ref RE: Regex = Regex::new(r"([ \t]*)<<([^>\s]+)>>").unwrap(); | 13 | static ref RE: Regex = Regex::new(r"(?m)^([[:blank:]]*)<<([^>\s]+)>>").unwrap(); |
| 14 | } | 14 | } |
| 15 | if let Some(entry) = blocks.get(entry).clone() { | 15 | if let Some(entry) = blocks.get(entry).clone() { |
| 16 | RE.replace_all(entry, |caps: &Captures| | 16 | RE.replace_all(entry, |caps: &Captures| |
