Skip to content

Commit

Permalink
Made property & keyword replacement more robust for inline styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Lea Verou committed Oct 30, 2011
1 parent c59364c commit 2c7f997
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions prefixfree.js
Expand Up @@ -157,8 +157,8 @@ var self = window.PrefixFree = {
}

fix('functions', '(\\s|:)', '\\s*\\(', '$1' + prefix + '$2(');
fix('keywords', '(\\s|:)', '(\\s|;|\\})', '$1' + prefix + '$2$3');
fix('properties', '(\\{|\\s|;)', '\\s*:', '$1' + prefix + '$2:');
fix('keywords', '(\\s|:)', '(\\s|;|\\}||$)', '$1' + prefix + '$2$3');
fix('properties', '(^|\\{|\\s|;)', '\\s*:', '$1' + prefix + '$2:');

// Prefix properties *inside* values (issue #8)
if (self.properties.length) {
Expand Down
2 changes: 1 addition & 1 deletion prefixfree.min.js

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

0 comments on commit 2c7f997

Please sign in to comment.