From fb6bc88cfa541324e584136adb35812e129883fd Mon Sep 17 00:00:00 2001 From: mschwager Date: Thu, 14 Nov 2024 01:13:23 -0700 Subject: [PATCH] Remove unnecessary string escaping (#67) * Use single quotes for strings to avoid escaping * Actually, we can use double quotes --- yaml/ansible/apt-key-unencrypted-url.yaml | 2 +- yaml/ansible/apt-unencrypted-url.yaml | 2 +- yaml/ansible/dnf-unencrypted-url.yaml | 2 +- yaml/ansible/get-url-unencrypted-url.yaml | 2 +- yaml/ansible/rpm-key-unencrypted-url.yaml | 2 +- yaml/ansible/unarchive-unencrypted-url.yaml | 2 +- yaml/ansible/yum-unencrypted-url.yaml | 2 +- yaml/ansible/zypper-repository-unencrypted-url.yaml | 2 +- yaml/ansible/zypper-unencrypted-url.yaml | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/yaml/ansible/apt-key-unencrypted-url.yaml b/yaml/ansible/apt-key-unencrypted-url.yaml index c23e66b..3438528 100644 --- a/yaml/ansible/apt-key-unencrypted-url.yaml +++ b/yaml/ansible/apt-key-unencrypted-url.yaml @@ -29,4 +29,4 @@ rules: - pattern: url - metavariable-regex: metavariable: $VALUE - regex: "(?i)^(http|ftp):\/\/.*" + regex: "(?i)^(http|ftp)://.*" diff --git a/yaml/ansible/apt-unencrypted-url.yaml b/yaml/ansible/apt-unencrypted-url.yaml index b5024bf..8fb424f 100644 --- a/yaml/ansible/apt-unencrypted-url.yaml +++ b/yaml/ansible/apt-unencrypted-url.yaml @@ -29,4 +29,4 @@ rules: - pattern: deb - metavariable-regex: metavariable: $VALUE - regex: "(?i)^(http|ftp):\/\/.*" + regex: "(?i)^(http|ftp)://.*" diff --git a/yaml/ansible/dnf-unencrypted-url.yaml b/yaml/ansible/dnf-unencrypted-url.yaml index 63a548f..420806a 100644 --- a/yaml/ansible/dnf-unencrypted-url.yaml +++ b/yaml/ansible/dnf-unencrypted-url.yaml @@ -33,4 +33,4 @@ rules: - pattern: pkg - metavariable-regex: metavariable: $VALUE - regex: "(?i)^(http|ftp):\/\/.*" + regex: "(?i)^(http|ftp)://.*" diff --git a/yaml/ansible/get-url-unencrypted-url.yaml b/yaml/ansible/get-url-unencrypted-url.yaml index d7542f1..70c4bb0 100644 --- a/yaml/ansible/get-url-unencrypted-url.yaml +++ b/yaml/ansible/get-url-unencrypted-url.yaml @@ -39,4 +39,4 @@ rules: - pattern: url - metavariable-regex: metavariable: $VALUE - regex: "(?i)^(http|ftp):\/\/.*" + regex: "(?i)^(http|ftp)://.*" diff --git a/yaml/ansible/rpm-key-unencrypted-url.yaml b/yaml/ansible/rpm-key-unencrypted-url.yaml index 7465ae0..7c6adc0 100644 --- a/yaml/ansible/rpm-key-unencrypted-url.yaml +++ b/yaml/ansible/rpm-key-unencrypted-url.yaml @@ -29,4 +29,4 @@ rules: - pattern: key - metavariable-regex: metavariable: $VALUE - regex: "(?i)^(http|ftp):\/\/.*" + regex: "(?i)^(http|ftp)://.*" diff --git a/yaml/ansible/unarchive-unencrypted-url.yaml b/yaml/ansible/unarchive-unencrypted-url.yaml index 64e683d..b3518fd 100644 --- a/yaml/ansible/unarchive-unencrypted-url.yaml +++ b/yaml/ansible/unarchive-unencrypted-url.yaml @@ -29,4 +29,4 @@ rules: - pattern: src - metavariable-regex: metavariable: $VALUE - regex: "(?i)^(http|ftp):\/\/.*" + regex: "(?i)^(http|ftp)://.*" diff --git a/yaml/ansible/yum-unencrypted-url.yaml b/yaml/ansible/yum-unencrypted-url.yaml index 8eded10..6b78de3 100644 --- a/yaml/ansible/yum-unencrypted-url.yaml +++ b/yaml/ansible/yum-unencrypted-url.yaml @@ -30,4 +30,4 @@ rules: - pattern: pkg - metavariable-regex: metavariable: $VALUE - regex: "(?i)^(http|ftp):\/\/.*" + regex: "(?i)^(http|ftp)://.*" diff --git a/yaml/ansible/zypper-repository-unencrypted-url.yaml b/yaml/ansible/zypper-repository-unencrypted-url.yaml index 8c69100..c5a3d45 100644 --- a/yaml/ansible/zypper-repository-unencrypted-url.yaml +++ b/yaml/ansible/zypper-repository-unencrypted-url.yaml @@ -29,4 +29,4 @@ rules: - pattern: community.general.zypper_repository - metavariable-regex: metavariable: $VALUE - regex: "(?i)^(http|ftp):\/\/.*" + regex: "(?i)^(http|ftp)://.*" diff --git a/yaml/ansible/zypper-unencrypted-url.yaml b/yaml/ansible/zypper-unencrypted-url.yaml index e99dcf3..1edc93d 100644 --- a/yaml/ansible/zypper-unencrypted-url.yaml +++ b/yaml/ansible/zypper-unencrypted-url.yaml @@ -30,4 +30,4 @@ rules: - pattern: community.general.zypper - metavariable-regex: metavariable: $VALUE - regex: "(?i)^(http|ftp):\/\/.*" + regex: "(?i)^(http|ftp)://.*"