Fix indentation in regex
This commit is contained in:
@@ -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<varName>[[:word:]]+) # variable declaration
|
||||
[[:space:]]* = [[:space:]]* # Equals sign
|
||||
'(?P<strval>[^']*)' # String value
|
||||
[[:space:]]*; # End of statement
|
||||
",
|
||||
r"(?x) # Ignore whitespace; allow line comments
|
||||
(\W|^) [[:space:]]* # Start of Javascript statement
|
||||
var [[:space:]]+ (?P<varName>[[:word:]]+) # variable declaration
|
||||
[[:space:]]* = [[:space:]]* # Equals sign
|
||||
'(?P<strval>[^']*)' # String value
|
||||
[[:space:]]*; # End of statement
|
||||
",
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user