Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
winseros committed Jul 6, 2024
2 parents 8aa21f6 + 3be8538 commit 39e75de
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/artifcats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
tools: tools_opensslv3_x64

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: code
submodules: true
Expand All @@ -74,7 +74,7 @@ jobs:
mv -Path ${{github.workspace}}\_artifacts\bin -Destination "${{github.workspace}}\_artifacts\PBO Manager"
- name: Upload binaries
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: PBOManager-binaries-${{env.pbom_version}}-${{env.pbom_build_number}}
path: ${{github.workspace}}\_artifacts\
Expand All @@ -86,7 +86,7 @@ jobs:
light.exe -ext WixUIExtension -dWixUILicenseRtf=${{github.workspace}}\code\LICENSE.rtf -out ${{github.workspace}}\_artifacts\PBOManager.${{env.pbom_installer_version}}.msi ${{github.workspace}}\_artifacts\PBOManager.wixobj
- name: Upload installer
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: PBOManager-installer-${{env.pbom_version}}-${{env.pbom_build_number}}
path: ${{github.workspace}}\_artifacts\PBOManager.${{env.pbom_installer_version}}.msi
Expand All @@ -101,7 +101,7 @@ jobs:
makeappx.exe pack /d ${{github.workspace}}\_msix\ /p ${{github.workspace}}\_artifacts\PBOManager.${{env.pbom_msix_version}}.msix
- name: Upload MSIX package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: PBOManager-msix-${{env.pbom_version}}-${{env.pbom_build_number}}
path: ${{github.workspace}}\_artifacts\PBOManager.${{env.pbom_msix_version}}.msix
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
dir: ${{github.workspace}}

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: code
submodules: true
Expand Down
3 changes: 2 additions & 1 deletion pbom/io/bb/__test__/sanitizedstring_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ namespace pboman3::io::test {
SanitizedStringTestParam{"COn", "^COn-\\d{1,4}"},
SanitizedStringTestParam{"COM1", "^COM1-\\d{1,4}"},
SanitizedStringTestParam{"lPt2", "^lPt2-\\d{1,4}"},
SanitizedStringTestParam{"NUL", "^NUL-\\d{1,4}"}
SanitizedStringTestParam{"NUL", "^NUL-\\d{1,4}"},
SanitizedStringTestParam{"COM6.{69D2CF90-FC33-4FB7-9A0C-EBB0F0FCB43C}", "COM6-\\d{1,4}.%7b69D2CF90-FC33-4FB7-9A0C-EBB0F0FCB43C%7d"}
));

class SanitizedStringLengthTest : public testing::TestWithParam<SanitizedStringTestParam> {
Expand Down
8 changes: 4 additions & 4 deletions pbom/io/bb/sanitizedstring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ namespace pboman3::io {

if (qsizetype firstInvalidCharIndex; needsCharacterSanitization(sanitized, &firstInvalidCharIndex)) {
sanitized = doCharacterSanitization(sanitized, firstInvalidCharIndex);
} else if (QString keyWord; needsKeywordSanitization(sanitized, &keyWord)) {
}
if (QString keyWord; needsKeywordSanitization(sanitized, &keyWord)) {
sanitized = doKeywordSanitization(sanitized, keyWord);
} else if (needsWhitespaceSanitization(sanitized)) {
}
if (needsWhitespaceSanitization(sanitized)) {
sanitized = doWhitespaceSanitization(sanitized);
}

if (QChar ending; needsEndingSanitization(sanitized, &ending)) {
sanitized = doEndingSanitization(sanitized, ending);
}

if (needsLengthSanitization(sanitized, maxStringLength)) {
//such code should run in the beginning of the pipeline to truncate the text before the other processing
//but unescaped binary character sequences make QString to report its length incorrectly
Expand Down

0 comments on commit 39e75de

Please sign in to comment.