Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
At libraries.api.php is:
* - pattern: A string containing a regular expression (PCRE) to match the
* library version. For example: '@version\s+([0-9a-zA-Z\.-]+)@'. Note
* that the returned version is not the match of the entire pattern (i.e.
* '@version 1.2.3' in the above example) but the match of the first
* sub-pattern (i.e. '1.2.3' in the above example).
It is not correct. preg_match requires "/" at begin and end of a pattern, so it should be there also.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2529556-1.patch | 1.49 KB | aritrika.d |
Comments
Comment #1
aritrika.d CreditAttribution: aritrika.d at OpenSense Labs commentedplease review the patch
Comment #2
aritrika.d CreditAttribution: aritrika.d at OpenSense Labs commented