Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from asok/correct-css-keywordish-regexp
Correct the regexp for kewordish css property which hold hex values
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require "helper" | ||
|
||
class UnitHTML5Scrub < Loofah::TestCase | ||
include Loofah | ||
|
||
def test_scrub_css | ||
assert_equal Loofah::HTML5::Scrub.scrub_css("background: #ABC012"), "background:#ABC012;" | ||
assert_equal Loofah::HTML5::Scrub.scrub_css("background: #abc012"), "background:#abc012;" | ||
end | ||
end |