SimulatedGREG/electron-vue

console.log from main process doesn't print CJK characters

Aperta

#605 aperta il 4 mag 2018

 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (1506 fork)batch import
bughelp wanted

Metriche repository

Star
 (15.384 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

"console.log" Chinese, Japanese in main process, cannot print.

Describe the issue / bug.

#

in "https://github.com/SimulatedGREG/electron-vue/tree/master/template/.electron-vue/dev-runner.js" line: 137


137: if (/[0-9A-z]+/.test(log)) {
   ....
}

log print english or number only.

Change


if (/[0-9A-z]+/.test(log)) {
   ....
}

to


if (log) {
   ....
}

or remove can fix it.

Guida contributor