Skip to content

Commit

Permalink
fix(yandexService): Fixed issue with parsing yandex values containing…
Browse files Browse the repository at this point in the history
… '/'

Yandex output sometimes contained '/' character (eg. to mark alternative translations). This
caused issues because this character was also used as text separator (hash). Changing separator
to '@@@' resolves problems.

#22
  • Loading branch information
karenpommeroy authored and KhaledMohamedP committed Oct 14, 2019
1 parent f1f0297 commit f4b5322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/service/yandex.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var Promise = require('promise');
var _ = require('lodash');

var hashSimple = '/|/|/|';
var hashSimple = '@@@';
var translateService;

function init(setting) {
Expand Down

0 comments on commit f4b5322

Please sign in to comment.