diff --git a/lib/saltlint/rules/YamlHasOctalValueRule.py b/lib/saltlint/rules/YamlHasOctalValueRule.py
index 541a9b9..c91b4f8 100644
--- a/lib/saltlint/rules/YamlHasOctalValueRule.py
+++ b/lib/saltlint/rules/YamlHasOctalValueRule.py
@@ -14,7 +14,7 @@ class YamlHasOctalValueRule(SaltLintRule):
     tags = ['formatting']
     version_added = 'v0.0.6'
 
-    bracket_regex = re.compile(r"(?<!['\"])0+[1-9]\d*(?!['\"])")
+    bracket_regex = re.compile(r": (?<!['\"])0+[1-9]\d*(?!['\"])")
 
     def match(self, file, line):
         return self.bracket_regex.search(line)

Check #210 triggers on more than filerights
Currently, check `#210` (in [YamlHasOctalValueRule](https://github.com/roaldnefs/salt-lint/blob/master/lib/saltlint/rules/YamlHasOctalValueRule.py)) has a regex set too wide, and triggers on all numbers starting with a zero.

Proposed solutions:

* Match regex on leading colon + space (`: 0123`)
* Match regex on `mode: 0123`
diff --git a/tests/unit/TestYamlHasOctalValueRule.py b/tests/unit/TestYamlHasOctalValueRule.py
index 996fa63..640aab8 100644
--- a/tests/unit/TestYamlHasOctalValueRule.py
+++ b/tests/unit/TestYamlHasOctalValueRule.py
@@ -16,9 +16,9 @@ testdirectory:
     - file_mode: 700
     - dir_mode: '0775'
 
-testdirectory2:
+testdirectory02:
   file.recurse:
-    - name: /tmp/directory2
+    - name: /tmp/directory02
     - file_mode: 0
     - dir_mode: "0775"
 '''

pip install -e .
parse_log_pytest
pytest
nose pytest
apt-get update apt-get install -y gcc
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
charset-normalizer==2.0.12
contextvars==2.4
distro==1.9.0
idna==3.10
immutables==0.19
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
Jinja2==3.0.3
jmespath==0.10.0
looseversion==1.3.0
MarkupSafe==2.0.1
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
msgpack==1.0.5
nose==1.3.7
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
psutil==7.0.0
py @ file:///opt/conda/conda-bld/py_1644396412707/work
pycryptodomex==3.21.0
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
PyYAML==6.0.1
pyzmq==25.0.2
requests==2.27.1
salt==3006.6
-e git+https://github.com/roaldnefs/salt-lint.git@9253a7aab3fa082b7063dfe47fd3bfe4fad461f0#egg=salt_lint
six==1.17.0
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
urllib3==1.26.20
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: salt-lint
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib-metadata=4.8.1=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - charset-normalizer==2.0.12
      - contextvars==2.4
      - distro==1.9.0
      - idna==3.10
      - immutables==0.19
      - jinja2==3.0.3
      - jmespath==0.10.0
      - looseversion==1.3.0
      - markupsafe==2.0.1
      - msgpack==1.0.5
      - nose==1.3.7
      - psutil==7.0.0
      - pycryptodomex==3.21.0
      - pyyaml==6.0.1
      - pyzmq==25.0.2
      - requests==2.27.1
      - salt==3006.6
      - six==1.17.0
      - urllib3==1.26.20
prefix: /opt/conda/envs/salt-lint

tests/unit/TestYamlHasOctalValueRule.py::TestFileModeLeadingZeroRule::test_statement_positive
tests/unit/TestYamlHasOctalValueRule.py::TestFileModeLeadingZeroRule::test_statement_negative
lib/saltlint/rules/YamlHasOctalValueRule.py
lib/saltlint/rules/YamlHasOctalValueRule.py