filenameMin not working, pattern matcher ignores it

We are trying to replace something like this 

```<script src="/bower_components/angular/angular.js"></script>```

with 

```<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.17/angular.min.js"></script>```

but we keep getting

```<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.17/angular.js"></script>```