lib/xml-stream.js
function normalizeSelector(selector) {
  var parts = selector.match(/[^\s>]+|>/ig);
  selector = (parts) ? parts.join(' ') : '';
  return {
    normalized: selector,
    parts: parts || []
  };
}
function normalizeSelector(selector) {
  var parts = selector.match(/[^\s>]+|>/ig);
  selector = (parts) ? parts.join(' ') : '';
  return {
    normalized: selector,
    parts: parts || []
  };
}
function normalizeSelector ( selector ) { var parts = selector . match ( / [^\s>]+|> / ig ) ; selector = ( parts ) ? parts . join ( ' ' ) : '' ; return { normalized : selector , parts : parts || [ ] } ; }
Normalizes the selector and returns the new version and its parts.
Normalizes the selector and returns the new version and its parts .