1
0
mirror of https://github.com/ericchiang/pup synced 2025-01-28 00:21:26 +00:00

+ and > are now correct

This commit is contained in:
ericchiang 2014-12-06 21:08:03 -05:00
parent 6fee0ebe20
commit c9b88c1354

6
pup.go
View File

@ -17,7 +17,7 @@ import (
// |/ \_( # |"
// C/ ,--___/
var VERSION string = "0.3.5"
var VERSION string = "0.3.6"
func main() {
// process flags and arguments
@ -55,9 +55,9 @@ func main() {
switch cmd {
case "*": // select all
continue
case "+":
funcGenerator = SelectFromChildren
case ">":
funcGenerator = SelectFromChildren
case "+":
funcGenerator = SelectNextSibling
case ",": // nil will signify a comma
selectorFuncs = append(selectorFuncs, nil)