Skip to content
Snippets Groups Projects
Commit 09e0e9a1 authored by Emmanuel Salomon's avatar Emmanuel Salomon :fist:
Browse files

fix: nuxt-content hook for lexique, priority to search in title

parent 670dd47a
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ export default {
/<lexique[>]([^<]*)<\/|<lexique\s+title="(.*)"/g
),
].map((match) => {
return (match[2] || match[1]).toLowerCase() // Priority for term in title=""
return (match[1] || match[2]).toLowerCase() // Priority for term in title=""
})
if (lexiqueTerms.length) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment