equal
deleted
inserted
replaced
117 |
117 |
118 (defun maven-central/parse-gradle-dependency () |
118 (defun maven-central/parse-gradle-dependency () |
119 (let ( groupId artifactId ) |
119 (let ( groupId artifactId ) |
120 (save-excursion |
120 (save-excursion |
121 (goto-char (line-beginning-position)) |
121 (goto-char (line-beginning-position)) |
122 (when (re-search-forward "\\([\"']\\)\\([a-zA-Z0-9.-]+\\):\\([a-zA-Z0-9.-]+\\):?[a-zA-Z0-9.-]*\\1" (line-end-position) t) |
122 (when (re-search-forward "\\([\"']\\)\\([a-zA-Z0-9.-]+\\):\\([a-zA-Z0-9.-]+\\):?[^\"']*\\1" (line-end-position) t) |
123 (setq groupId (match-string 2)) |
123 (setq groupId (match-string 2)) |
124 (setq artifactId (match-string 3)) |
124 (setq artifactId (match-string 3)) |
125 (list groupId artifactId))))) |
125 (list groupId artifactId))))) |
126 |
126 |
127 ;;;###autoload |
127 ;;;###autoload |