diff --git a/cylc/flow/scripts/lint.py b/cylc/flow/scripts/lint.py index c429ec4d69..ddefb03903 100755 --- a/cylc/flow/scripts/lint.py +++ b/cylc/flow/scripts/lint.py @@ -192,7 +192,7 @@ def get_wallclock_directives(): if directive and directive == '-W': # LSF directive -W needs to have a particular form to # avoid matching PBS directive -W: - directives[module.name] = re.compile(r'^-W\s+(\d+:)?\d+$') + directives[module.name] = re.compile(r'^-W\s*=?\s*(\d+:)?\d+$') elif directive: directives[module.name] = re.compile(rf'^{directive}.*') return directives