Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var search = self._search = value.substr(i);
i = search.indexOf('#');
if (i != -1) {
self._search = search.substr(0, i);
self._hash = search.substr(i);
}
} else {
i = value.indexOf('#');
if (i != -1) {
val = value.substr(0, i);
self._hash = value.substr(i);
} else {
val = value;
}
}
self._value = pkg.resolve(val);
}