Browse Source

Fix incorrect regex in platform_define

This broken regex will match against "17" anywhere in the OTP version
string, and so will define NO_DIALYZER_SPEC e.g. for OTP 22.3.4.17.
Jesper Eskilson 4 years ago
parent
commit
489a990cf5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rebar.config

+ 1 - 1
rebar.config

@@ -5,7 +5,7 @@
             warn_untyped_record,
             inline,
             {platform_define, "^R[01][0-9]", 'NO_MAP_TYPE'},
-            {platform_define, "(^R|17)", 'NO_DIALYZER_SPEC'}
+            {platform_define, "^(R|17)", 'NO_DIALYZER_SPEC'}
            ]}.
 
 {xref_checks, [