From c90698f746c540ef4370142aa6970519b4d9e5a6 Mon Sep 17 00:00:00 2001 From: Philip Scherer Date: Sat, 21 May 2022 22:14:22 +0200 Subject: [PATCH] Fix indentation in regex --- src/station.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/station.rs b/src/station.rs index 84b0545..b42a192 100644 --- a/src/station.rs +++ b/src/station.rs @@ -88,13 +88,13 @@ pub mod station { fn init_crypto(&mut self, response: &str) -> Result<(), StationError> { let re = Regex::new( - r"(?x) # Ignore whitespace; allow line comments - (\W|^) [[:space:]]* # Start of Javascript statement - var [[:space:]]+ (?P[[:word:]]+) # variable declaration - [[:space:]]* = [[:space:]]* # Equals sign - '(?P[^']*)' # String value - [[:space:]]*; # End of statement - ", + r"(?x) # Ignore whitespace; allow line comments + (\W|^) [[:space:]]* # Start of Javascript statement + var [[:space:]]+ (?P[[:word:]]+) # variable declaration + [[:space:]]* = [[:space:]]* # Equals sign + '(?P[^']*)' # String value + [[:space:]]*; # End of statement + ", ) .unwrap();