Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: SocialGouv/dashlord-actions
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.18.3
Choose a base ref
...
head repository: SocialGouv/dashlord-actions
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.18.4
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Mar 17, 2022

  1. Copy the full SHA
    f6419a2 View commit details
Showing with 3 additions and 2 deletions.
  1. +3 −2 declaration-rgpd/index.js
5 changes: 3 additions & 2 deletions declaration-rgpd/index.js
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ const searches = [
["directeur", "directrice"],
["publication"],
["hébergeur", "hébergement"],
["éditeur"],
["éditeur", "édité par"],
],
},
{
@@ -120,9 +120,10 @@ const analyseDom = async (
.map((needle) => ({ needle, score: fuzzy(needle, text) }))
.sort((a, b) => a.score - b.score)
.reverse();

// ensure were confident enough
const bestMatch = status[0];
if (bestMatch.score > 0.9) {
if (bestMatch.score > 0.8) {
result.mention = bestMatch.needle;
result.declarationUrl = getDeclarationUrl(dom, bestMatch, url);