From 5b59cb5670af1072691dc56ca22ce8ebc8eeab70 Mon Sep 17 00:00:00 2001 From: gggeek Date: Mon, 15 Apr 2024 11:41:00 +0000 Subject: [PATCH] touch docs to run build --- .github/workflows/ci.yaml | 4 ++-- src/Helper/XMLParser.php | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5fa6c8c1..a187fee7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -89,7 +89,7 @@ jobs: # key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} - name: install dependencies - run: 'composer install' + run: 'composer install --no-progress' - name: run tests and upload coverage info if needed run: | @@ -147,7 +147,7 @@ jobs: sudo cat /var/log/php*.log # Whenever a change is pushed to this library, we run as well the tests of all known packages depending on it, - # so that we can catch any (involuntary) breackage. + # so that we can catch any (involuntary) breakage. # NB: if any are detected, do not forget to mark the current versions of dependents as incompatible in composer.json test-dependencies: runs-on: ubuntu-20.04 diff --git a/src/Helper/XMLParser.php b/src/Helper/XMLParser.php index 2a2094a9..9212d1f2 100644 --- a/src/Helper/XMLParser.php +++ b/src/Helper/XMLParser.php @@ -929,6 +929,7 @@ class XMLParser // Details: // SPACE: (#x20 | #x9 | #xD | #xA)+ === [ \x9\xD\xA]+ // EQ: SPACE?=SPACE? === [ \x9\xD\xA]*=[ \x9\xD\xA]* + // We could be stricter on version number: VersionNum ::= '1.' [0-9]+ if (preg_match('/^<\?xml\s+version\s*=\s*' . "((?:\"[a-zA-Z0-9_.:-]+\")|(?:'[a-zA-Z0-9_.:-]+'))" . '\s+encoding\s*=\s*' . "((?:\"[A-Za-z][A-Za-z0-9._-]*\")|(?:'[A-Za-z][A-Za-z0-9._-]*'))/", $xmlChunk, $matches)) { @@ -988,6 +989,7 @@ class XMLParser // Details: // SPACE: (#x20 | #x9 | #xD | #xA)+ === [ \x9\xD\xA]+ // EQ: SPACE?=SPACE? === [ \x9\xD\xA]*=[ \x9\xD\xA]* + // We could be stricter on version number: VersionNum ::= '1.' [0-9]+ if (preg_match('/^<\?xml\s+version\s*=\s*' . "((?:\"[a-zA-Z0-9_.:-]+\")|(?:'[a-zA-Z0-9_.:-]+'))" . '\s+encoding\s*=\s*' . "((?:\"[A-Za-z][A-Za-z0-9._-]*\")|(?:'[A-Za-z][A-Za-z0-9._-]*'))/", $xmlChunk)) { -- 2.47.0