AM
Size: a a a
AM
AM
AM
AM
N
AM
AL
let textEn = 'This is {test}';
let textDe = 'Das ist {test}';
let replacer = 'Winnie the Pooh';
console.log(textEn + ' - ' + textDe + ' - ' + replacer); // => This is {test} - Das ist {test} - Winnie the Pooh
console.log(textEn.includes(replacer)); // => true
console.log(textDe.includes(replacer)); // => false
console.log(textEn.replace('{test}', replacer); // => This is Winnie the Pooh
console.log(textDe.replace('{test}', replacer); // => Das ist {test}
//При этом:
console.log(textDe.includes('test'); // => true, исходя из чего и сделан вывод что проблема в скобках и их кодировке
АК
JD
JD
АК
ps
npm ERR! code 1
npm ERR! path /Users/
<...>/node_modules/typescript
npm ERR! command failed
npm ERR! command sh -c gulp build-eslint-rules
npm ERR! [16:30:28] Local modules not found in ~/
<...>/typescript
npm ERR! [16:30:28] Try running: npm install
В
npm ERR! code 1
npm ERR! path /Users/
<...>/node_modules/typescript
npm ERR! command failed
npm ERR! command sh -c gulp build-eslint-rules
npm ERR! [16:30:28] Local modules not found in ~/
<...>/typescript
npm ERR! [16:30:28] Try running: npm install
N
npm ERR! code 1
npm ERR! path /Users/
<...>/node_modules/typescript
npm ERR! command failed
npm ERR! command sh -c gulp build-eslint-rules
npm ERR! [16:30:28] Local modules not found in ~/
<...>/typescript
npm ERR! [16:30:28] Try running: npm install
DF