Avoid generating a duplicate !ig suggestion
This commit is contained in:
parent
9721b8e82b
commit
8b55d0c20c
@ -1225,6 +1225,10 @@ ContextMenuRenderer.prototype.makeCopyTextFn = function(text) {
|
||||
|
||||
ContextMenuRenderer.prototype.getPathVariants = function(path) {
|
||||
var paths = [path];
|
||||
|
||||
// Avoid generating a duplicate suggestion
|
||||
path = path.replace(/\/$/, "");
|
||||
|
||||
while(path.lastIndexOf('/') > 0) {
|
||||
path = path.replace(/\/[^\/]*$/, "");
|
||||
paths.push(path + '/');
|
||||
|
Loading…
x
Reference in New Issue
Block a user