feat(shaarli/edit) better domains/urls ignore
This commit is contained in:
parent
f919986d50
commit
afe20ff31f
@ -323,7 +323,10 @@
|
|||||||
|
|
||||||
function updateSuggestionList() {
|
function updateSuggestionList() {
|
||||||
// Supprime les liens archive pour ne pas matcher "archive.org" ou similaires
|
// Supprime les liens archive pour ne pas matcher "archive.org" ou similaires
|
||||||
var rawDesc = descriptionEl.value.replace(/https?:\/\/web\.archive\.org\S*/gi, '').replace(/Archive:/gi, '');
|
var rawDesc = descriptionEl.value
|
||||||
|
.replace(/https?:\/\/web\.archive\.org\S*/gi, '')
|
||||||
|
.replace(/Archive:/gi, '')
|
||||||
|
.replace(/voir aussi https:\/\/shaarli\.zoemp/gi, '');
|
||||||
var desc = rawDesc.toLowerCase();
|
var desc = rawDesc.toLowerCase();
|
||||||
var existing = tagify.value.map(function(item){ return item.value; });
|
var existing = tagify.value.map(function(item){ return item.value; });
|
||||||
matchCounts = {};
|
matchCounts = {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user