Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Added regular expressions to update the name of svg files included with the AngularJS ngInclude element and attribute #253

Closed
wants to merge 1 commit into from

Conversation

dedalusj
Copy link

@dedalusj dedalusj commented Dec 9, 2013

AngularJS allows for the inclusion of svg files in the html as svg elements by using the ngInclude directive.

Currently, svg files included in the html with this technique are not processed by usemin as they don't match any of the regular expressions in fileprocessor.js. Consequently their names are not updated in the html after the rev phase.

I have included regular expressions that match ngInclude directives with an svg image as soure.

…th AngularJS ngInclude element and attribute
@sindresorhus
Copy link
Member

Can you include tests?

Also need to fix the merge conflict.

+ ],
+ [ /<ng-include[^]+src=['"]([^"']+svg)["']/gm,
+ 'Update the HTML with the new svg filenames included with ngInclude element'
+ ],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the +s on the left side ;)

@sindresorhus
Copy link
Member

You can use the new feature in #337 to solve this yourself.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants