Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
fixed tag spaces (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
carterm authored Mar 11, 2020
1 parent f49339b commit de54dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodescripts/tokenreplace.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function replaceonetoken (data, targetlang, files) {
, 'g')]; // add token with literal square brackets

const to = data[targetlang]
.replace(/<\/\s*/g, '</'); // fixes broken html from auto-translate "</ i>" => "</i>"
.replace(/<\s*\/\s*/g, '</'); // fixes broken html from auto-translate "< / i>" => "</i>"

// replace this token, add the number of matches to the list
replace.sync({ files, from, to, countMatches: true })
Expand Down

0 comments on commit de54dff

Please sign in to comment.