Skip to content

Fix user crontab regular expression#2

Merged
gregorg merged 1 commit into
gregorg:masterfrom
hannob:fixusercrontab
Feb 2, 2024
Merged

Fix user crontab regular expression#2
gregorg merged 1 commit into
gregorg:masterfrom
hannob:fixusercrontab

Conversation

@hannob

@hannob hannob commented Jan 19, 2024

Copy link
Copy Markdown

The existing code causes a LINE_ERROR for cronjobs that consist of a single command without any parameters. This is due to the fact that the regular expression expects a username string and a command after that, and the conditional is_user_crontab code concats these two strings.

Instead of doing that, this commit introduces a separate regular expression for user crontab lines.

The existing code causes a LINE_ERROR for cronjobs that consist of a single
command without any parameters. This is due to the fact that the regular
expression expects a username string and a command after that, and the conditional
is_user_crontab code concats these two strings.

Instead of doing that, this commit introduces a separate regular expression
for user crontab lines.
@gregorg
gregorg merged commit 2e3a7c7 into gregorg:master Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants