wayneeseguin/rvm — pull request #1514 by cwgem (2013-02-08 18:33:15+00:00)
Title: Fix on topaz URL parsing regex

RVM checks a list of packages from http://builds.topazruby.com/ before downloading the actual package. The current grep is overly greedy as shown here:

```
cwgem@elixer ~ $ grep -Eo "topaz-linux64-.*?.tar.bz2" topaz.xml | head -n 1
topaz-linux64-04ab1983cf39127e0d8ed4efdbdccbe819eb2992.tar.bz22013-02-06T15:29:56.000Z"d6baa1e6e69de6764a552717c6d00857"365855009584dbfd79bab8e60ed2c2d9d99cc1c2b36cd1ac937cf712e954ba3a366f68balex.gaynorSTANDARDtopaz-msvc-i386-51466ba4ab8a921527de436da15f467c2b503fc5.tar2013-02-06T16:19:11.000Z"aa6a2990289fef6a3be411ee68e87f73"6563840STANDARDtopaz-osx64-242eebe5ce38a6c9808ccecaa46bfa427d53e2d4.tar.bz2
```

This addresses it by being more specific on the regex:

```
topaz-${version}-[^.]+.tar.bz2
topaz-linux64-04ab1983cf39127e0d8ed4efdbdccbe819eb2992.tar.bz2
```

Which matches the hash part with "One or more characters that are not a period".

```
cwgem@elixer ~ $ grep -Eo "topaz-linux64-[^.]+.tar.bz2" topaz.xml | head -n 1
topaz-linux64-04ab1983cf39127e0d8ed4efdbdccbe819eb2992.tar.bz2
```