@@ -662,20 +662,20 @@ the location of DRUPAL_ROOT."
662662 (insert-file-contents-literally module)
663663 (goto-char (point-min ))
664664 (when (and (not drupal-version)
665- (re-search-forward " ^core *=" nil t ))
666- (re-search-forward " * \" ?\\ ([^\" ]+\\ )\" ?" (point-at-eol ) t )
665+ (re-search-forward " ^core[ \t ] *=" nil t ))
666+ (re-search-forward " [ \t ] \" ?\\ ([^\" ]+\\ )\" ?" (point-at-eol ) t )
667667 (setq version (match-string-no-properties 1 )))
668668 (goto-char (point-min ))
669- (when (re-search-forward " ^name * =" nil t )
670- (re-search-forward " *\" ?\\ ([^\" ]+\\ )\" ?" (point-at-eol ) t )
669+ (when (re-search-forward " ^name[ \t ] =" nil t )
670+ (re-search-forward " [ \t ] *\" ?\\ ([^\" ]+\\ )\" ?" (point-at-eol ) t )
671671 (setq module-name (match-string-no-properties 1 )))
672672 (goto-char (point-min ))
673- (when (re-search-forward " ^version *=" nil t )
674- (re-search-forward " *\" ?\\ ([^\" ]+\\ )\" ?" (point-at-eol ) t )
673+ (when (re-search-forward " ^version[ \t ] *=" nil t )
674+ (re-search-forward " [ \t ] *\" ?\\ ([^\" ]+\\ )\" ?" (point-at-eol ) t )
675675 (setq module-version (match-string-no-properties 1 )))
676676 (goto-char (point-min ))
677- (when (re-search-forward " ^project *=" nil t )
678- (re-search-forward " *\" ?\\ ([^\" ]+\\ )\" ?" (point-at-eol ) t )
677+ (when (re-search-forward " ^project[ \t ] *=" nil t )
678+ (re-search-forward " [ \t ] *\" ?\\ ([^\" ]+\\ )\" ?" (point-at-eol ) t )
679679 (setq project (match-string-no-properties 1 )))
680680 (when (and (string= project " drupal" )
681681 (string= module-version " VERSION" ))
0 commit comments