diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9be205f..0920847 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,12 +6,10 @@ updates: # Maintain dependencies for Gradle dependencies - package-ecosystem: "gradle" directory: "/" - target-branch: "next" schedule: interval: "daily" # Maintain dependencies for GitHub Actions - package-ecosystem: "github-actions" directory: "/" - target-branch: "next" schedule: - interval: "daily" + interval: "daily" \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8ae6115..4b27f7f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true - + jobs: # Prepare environment and build the plugin @@ -35,6 +35,12 @@ jobs: changelog: ${{ steps.properties.outputs.changelog }} pluginVerifierHomeDir: ${{ steps.properties.outputs.pluginVerifierHomeDir }} steps: + # Free GitHub Actions Environment Disk Space + - name: Maximize Build Space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + large-packages: false # Check out the current repository - name: Fetch Sources @@ -42,7 +48,7 @@ jobs: # Validate wrapper - name: Gradle Wrapper Validation - uses: gradle/actions/wrapper-validation@v3 + uses: gradle/actions/wrapper-validation@v4 # Set up Java environment for the next steps - name: Setup Java @@ -99,8 +105,14 @@ jobs: needs: [ build ] runs-on: ubuntu-latest steps: + # Free GitHub Actions Environment Disk Space + - name: Maximize Build Space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + large-packages: false - # Check out current repository + # Check out the current repository - name: Fetch Sources uses: actions/checkout@v4 @@ -143,7 +155,6 @@ jobs: checks: write pull-requests: write steps: - # Free GitHub Actions Environment Disk Space - name: Maximize Build Space uses: jlumbroso/free-disk-space@main @@ -151,7 +162,7 @@ jobs: tool-cache: false large-packages: false - # Check out current repository + # Check out the current repository - name: Fetch Sources uses: actions/checkout@v4 with: @@ -177,7 +188,6 @@ jobs: needs: [ build ] runs-on: ubuntu-latest steps: - # Free GitHub Actions Environment Disk Space - name: Maximize Build Space uses: jlumbroso/free-disk-space@main @@ -185,7 +195,7 @@ jobs: tool-cache: false large-packages: false - # Check out current repository + # Check out the current repository - name: Fetch Sources uses: actions/checkout@v4 @@ -230,7 +240,7 @@ jobs: contents: write steps: - # Check out current repository + # Check out the current repository - name: Fetch Sources uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 767e7c0..b14a6a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,8 +17,14 @@ jobs: contents: write pull-requests: write steps: + # Free GitHub Actions Environment Disk Space + - name: Maximize Build Space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + large-packages: false - # Check out current repository + # Check out the current repository - name: Fetch Sources uses: actions/checkout@v4 with: @@ -49,7 +55,7 @@ jobs: echo "$CHANGELOG" >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT - # Update Unreleased section with the current release note + # Update the Unreleased section with the current release note - name: Patch Changelog if: ${{ steps.properties.outputs.changelog != '' }} env: diff --git a/.github/workflows/run-ui-tests.yml b/.github/workflows/run-ui-tests.yml index c924cb9..c901413 100644 --- a/.github/workflows/run-ui-tests.yml +++ b/.github/workflows/run-ui-tests.yml @@ -31,7 +31,7 @@ jobs: steps: - # Check out current repository + # Check out the current repository - name: Fetch Sources uses: actions/checkout@v4 diff --git a/gradle.properties b/gradle.properties index 930d53d..f4c4db2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ pluginGroup = com.github.enzdev.ideangxtranslateautocomplete pluginName = idea-ngx-translate-autocomplete -pluginVersion = 0.1.9 +pluginVersion = 0.1.10 pluginRepositoryUrl = https://plugins.jetbrains.com/plugin/17450-ngtranslate-toolset diff --git a/src/main/kotlin/fr/enzomallard/ngxtranslatetoolset/psi/TranslationUtils.kt b/src/main/kotlin/fr/enzomallard/ngxtranslatetoolset/psi/TranslationUtils.kt index f05e77b..6856f38 100644 --- a/src/main/kotlin/fr/enzomallard/ngxtranslatetoolset/psi/TranslationUtils.kt +++ b/src/main/kotlin/fr/enzomallard/ngxtranslatetoolset/psi/TranslationUtils.kt @@ -71,7 +71,7 @@ object TranslationUtils { is JsonObject -> value.propertyList .filter { - lookupKey.isEmpty() || it.name.matches(".*${lookupKey.first()}.*".toRegex()) + lookupKey.isEmpty() || it.name.matches(".*${Regex.escape(lookupKey.first())}.*".toRegex()) }.map { prop -> ProgressManager.checkCanceled() // Check cancel before continuing recursion recurseKeysWithFilter(prop.value!!, lookupKey.drop(1), keys + prop.name)