Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typosのバージョンをv1.10.3に更新 #895

Merged
merged 4 commits into from
Aug 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -102,14 +102,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 @@ -1853,7 +1853,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