verify the regex passed with the path-pattern option

Created on 6 December 2023, 7 months ago

Problem/Motivation

If you mess up the regex you get a lot of warnings on the command line but tome:static keeps on going. Instead it should stop:

      // Running the regex against an empty string should return 0 if the regex is valid, will return FALSE if there is an error.
      // Silence the warning since we're handling this ourselves.
      if (@preg_match($options['path-pattern'], '') === FALSE) {
        // I can't remember how we halt a Drush command with an error

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024