Skip to content

Commit

Permalink
support ":" in attr names. (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeoniya committed Oct 12, 2019
1 parent 42259d7 commit 2810f87
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/dropcss.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var VOIDS = new Set("area base br col command embed hr img input keygen link met
var NASTIES = /<!doctype[^>]*>|<!--[\s\S]*?-->|<script[^>]*>[\s\S]*?<\/script>|<style[^>]*>[\s\S]*?<\/style>|<link[^>]*>|<meta[^>]*>/gmi;
var RE = {
NAME: /\s*<([\w-]+)\s*/myi,
ATTR: /\s*([\w-]+)(?:="([^"]*)"|='([^']*)'|=([\w-]+))?\s*/myi,
ATTR: /\s*([\w-:]+)(?:="([^"]*)"|='([^']*)'|=([\w-]+))?\s*/myi,
TAIL: /\s*(\/?>)\s*/myi,
TEXT: /\s*[^<]*/my,
CLOSE: /\s*<\/[\w-]+>\s*/myi,
Expand Down
2 changes: 1 addition & 1 deletion dist/dropcss.iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var dropcss = (function () {
var NASTIES = /<!doctype[^>]*>|<!--[\s\S]*?-->|<script[^>]*>[\s\S]*?<\/script>|<style[^>]*>[\s\S]*?<\/style>|<link[^>]*>|<meta[^>]*>/gmi;
var RE = {
NAME: /\s*<([\w-]+)\s*/myi,
ATTR: /\s*([\w-]+)(?:="([^"]*)"|='([^']*)'|=([\w-]+))?\s*/myi,
ATTR: /\s*([\w-:]+)(?:="([^"]*)"|='([^']*)'|=([\w-]+))?\s*/myi,
TAIL: /\s*(\/?>)\s*/myi,
TEXT: /\s*[^<]*/my,
CLOSE: /\s*<\/[\w-]+>\s*/myi,
Expand Down
2 changes: 1 addition & 1 deletion dist/dropcss.iife.min.js

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

Loading

0 comments on commit 2810f87

Please sign in to comment.