mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
scanner: fix single backslash in raw string (#10890)
This commit is contained in:
parent
b537c9f624
commit
ed234188b7
3 changed files with 6 additions and 2 deletions
|
@ -292,7 +292,7 @@ fn (mut ad AnchorData) add_link_targets(line_number int, line string) {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
query := r'<a\s*id=["\'](?P<link>[a-z0-9\-\_\x7f-\uffff]+)["\']\s*/>'
|
||||
query := '<a\\s*id=["\'](?P<link>[a-z0-9\\-\\_\\x7f-\\uffff]+)["\']\\s*/>'
|
||||
mut re := regex.regex_opt(query) or { panic(err) }
|
||||
res := re.find_all_str(line)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue