fix(tags): libelle with double dash, becomes double underscore. no worries it was already broken

This commit is contained in:
Martin 2024-02-16 11:28:11 +01:00 committed by mfo
parent 0fbbe4d97c
commit 1a424beb6f
2 changed files with 2 additions and 1 deletions

View file

@ -19,6 +19,7 @@ module TagsSubstitutionConcern
.sub(/[[:space:]]+$/, '')
.gsub(/[[:space:]]/, ' ')
.gsub(' ', ' ')
.gsub(/--/, '__')
end
define_combinator :doc do

View file

@ -211,7 +211,7 @@ describe TagsSubstitutionConcern, type: :model do
end
context 'and they are used in the template' do
let(:template) { "--bon pote -- c'est top--" }
let(:template) { "--bon pote __ c'est top--" }
context 'and their value in the dossier are not nil' do
before do