Skip to content

Commit f4b5322

Browse files
karenpommeroyKhaledMohamedP
authored andcommitted
fix(yandexService): Fixed issue with parsing yandex values containing '/'
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
1 parent f1f0297 commit f4b5322

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/service/yandex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var Promise = require('promise');
22
var _ = require('lodash');
33

4-
var hashSimple = '/|/|/|';
4+
var hashSimple = '@@@';
55
var translateService;
66

77
function init(setting) {

0 commit comments

Comments
 (0)