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

Commit

Permalink
Fixed #59
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaVerou committed Apr 16, 2012
1 parent a61a1e7 commit 2999f9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions prefixfree.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var self = window.StyleFix = {

// Convert relative URLs to absolute, if needed
if(base) {
css = css.replace(/url\(((?:"|')?)(.+?)\1\)/gi, function($0, quote, url) {
css = css.replace(/url\(\s*?((?:"|')?)(.+?)\1\s*?\)/gi, function($0, quote, url) {
if(!/^([a-z]{3,10}:|\/|#)/i.test(url)) { // If url not absolute & not a hash
// May contain sequences like /../ and /./ but those DO work
return 'url("' + base + url + '")';
Expand Down Expand Up @@ -150,7 +150,7 @@ function $(expr, con) {
})();

/**
* PrefixFree 1.0.4
* PrefixFree 1.0.5
* @author Lea Verou
* MIT license
*/
Expand Down
7 changes: 2 additions & 5 deletions prefixfree.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2999f9e

Please sign in to comment.