mirror of
https://github.com/Dvorinka/Devour.git
synced 2026-06-04 04:23:02 +00:00
updage
This commit is contained in:
@@ -540,9 +540,7 @@ func (p *Parser) extractVariables(doc *goquery.Document) []*Value {
|
||||
|
||||
text := codeEl.Text()
|
||||
// Parse var declarations
|
||||
if strings.HasPrefix(text, "var ") {
|
||||
text = strings.TrimPrefix(text, "var ")
|
||||
}
|
||||
text = strings.TrimPrefix(text, "var ")
|
||||
|
||||
lines := strings.Split(text, "\n")
|
||||
for _, line := range lines {
|
||||
|
||||
Reference in New Issue
Block a user