(s string)
| 158 | } |
| 159 | |
| 160 | func IsSubNeeded(s string) bool { |
| 161 | |
| 162 | words, err := ParseSub(s, true) |
| 163 | if err != nil { |
| 164 | config.Debugf("error in IsSubNeeded: %v", err) |
| 165 | return true |
| 166 | } |
| 167 | for _, w := range words { |
| 168 | switch w.T { |
| 169 | case STR: |
| 170 | // Ignore this |
| 171 | default: |
| 172 | // Anything else means it's needed |
| 173 | return true |
| 174 | } |
| 175 | } |
| 176 | return false |
| 177 | } |