issues
search
takuyaa
/
kuromoji.js
JavaScript implementation of Japanese morphological analyzer
832
stars
117
forks
source link
Fix/Wrap GZ File Decompression in Try-Catch Block
#51
Open
ilaylow
opened
8 months ago
ilaylow
commented
8 months ago
During fetching of the dict.gz files, explicit decompression of .gz files takes place.
However, some browsers will perform auto-decompression of these files upon retrieval, thus this explicit step results in an error.
Wrapping this step in a try catch block helps to bypass and skip this decompression step, should it be decompressed by the browser already.