fix(tags): libelle with double dash, becomes double underscore. no worries it was already broken
This commit is contained in:
parent
0fbbe4d97c
commit
1a424beb6f
2 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@ module TagsSubstitutionConcern
|
|||
.sub(/[[:space:]]+$/, '')
|
||||
.gsub(/[[:space:]]/, ' ')
|
||||
.gsub(' ', ' ')
|
||||
.gsub(/--/, '__')
|
||||
end
|
||||
|
||||
define_combinator :doc do
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue