Skip to content

Commit

Permalink
typosのバージョンをv1.10.3に更新 (VOICEVOX#895)
Browse files Browse the repository at this point in the history
* Update typos to v1.10.3

* メッセージをわかりやすく変更

* Update _typos.toml

Co-authored-by: Hiroshiba <[email protected]>

* Fix a word

Co-authored-by: Hiroshiba <[email protected]>
  • Loading branch information
shirayu and Hiroshiba authored Aug 23, 2022
1 parent 0435703 commit da5201e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/typos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
- uses: actions/checkout@v2

- name: typos-action
uses: crate-ci/typos@v1.1.7
uses: crate-ci/typos@v1.10.3
1 change: 1 addition & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[default.extend-identifiers]

[default.extend-words]
ba="ba" # 7zコマンドの-baオプション

[files]
extend-exclude = ["package-lock.json", "src/store/project.ts", "*.svg"]
4 changes: 2 additions & 2 deletions build/installer_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ if [ "$REUSE_LIST" != "1" ]; then
fi

echo
echo "[+] Listing of splitted archives..."
echo "[+] Listing of split archives..."
_readarray ARCHIVE_LIST < "list.txt"

if [ -z "$(echo "${ARCHIVE_LIST[0]}" | awk '$0=$1')" ]; then
Expand Down Expand Up @@ -375,7 +375,7 @@ EOS

# Remove archives
if [ "${KEEP_ARCHIVE}" != "1" ]; then
echo "[+] Removing splitted archives..."
echo "[+] Removing split archives..."

for filename in "${ARCHIVE_NAME_LIST[@]}"; do
echo "[+] Removing ${filename}..."
Expand Down
2 changes: 1 addition & 1 deletion build/splitNsisArchive.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ exports.default = async function (target) {
inputStream.on("end", () => {
const iniFilePath = path.resolve(outputDirectory, fileName).concat(".ini");
fs.writeFileSync(iniFilePath, createIni(sizes, hashes));
console.log("Splitted NSIS Archive.");
console.log("Finished NSIS Archive split.");
});
};
8 changes: 4 additions & 4 deletions src/store/audio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ function parseTextFile(
userOrderedCharacterInfos[0].metas.speakerUuid
);
if (lastStyleId == undefined) throw new Error(`lastStyleId is undefined.`);
for (const splittedText of body.split(new RegExp(`${seps.join("|")}`, "g"))) {
const styleId = characters.get(splittedText);
for (const splitText of body.split(new RegExp(`${seps.join("|")}`, "g"))) {
const styleId = characters.get(splitText);
if (styleId !== undefined) {
lastStyleId = styleId;
continue;
}

audioItems.push({ text: splittedText, styleId: lastStyleId });
audioItems.push({ text: splitText, styleId: lastStyleId });
}
return audioItems;
}
Expand Down Expand Up @@ -1877,7 +1877,7 @@ export const audioCommandStore: VoiceVoxStoreOptions<
JSON.stringify(query.accentPhrases)
);
const changeIndexes = [accentPhraseIndex];
// toggleAccentPhrase to newAccentPhrases and recored changeIndexes
// toggleAccentPhrase to newAccentPhrases and record changeIndexes
{
const mergeAccent = (
accentPhrases: AccentPhrase[],
Expand Down

0 comments on commit da5201e

Please sign in to comment.