xbbcode-parser
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "xbbcode-parser", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Allows you to parse BBCode and to extend the markup to add your own tags.", | ||
@@ -5,0 +5,0 @@ "main": "xbbcode.js", |
@@ -40,3 +40,3 @@ /* | ||
var me = {}, | ||
urlPattern = /^(?:https?|file|c):(?:\/{1,3}|\\{1})[-a-zA-Z0-9:;@#%&()~_?\+=\/\\\.]*$/, | ||
urlPattern = /^(?:https?|file|c):(?:\/{1,3}|\\{1})[-a-zA-Z0-9:;,@#%&()~_?\+=\/\\\.]*$/, | ||
colorNamePattern = /^(?:aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen)$/, | ||
@@ -137,3 +137,4 @@ colorCodePattern = /^#?[a-fA-F0-9]{6}$/, | ||
openTag: function(params,content) { | ||
params = params || ''; | ||
var colorCode = (params.substr(1)).toLowerCase() || "black"; | ||
@@ -182,2 +183,3 @@ colorNamePattern.lastIndex = 0; | ||
openTag: function(params,content) { | ||
params = params || ''; | ||
@@ -199,2 +201,3 @@ var faceCode = params.substr(1) || "inherit"; | ||
openTag: function(params,content) { | ||
params = params || ''; | ||
@@ -248,4 +251,4 @@ var faceCode = params.substr(1) || "inherit"; | ||
openTag: function(params,content) { | ||
params = params || ''; | ||
params = params || ''; | ||
var colorCode = params.substr(1) || "inherit"; | ||
@@ -350,2 +353,3 @@ colorNamePattern.lastIndex = 0; | ||
openTag: function(params,content) { | ||
params = params || ''; | ||
@@ -365,4 +369,4 @@ var mySize = parseInt(params.substr(1),10) || 0; | ||
openTag: function(params,content) { | ||
params = params || ''; | ||
params = params || ''; | ||
var colorCode = params.substr(1) || "inherit"; | ||
@@ -789,3 +793,3 @@ colorNamePattern.lastIndex = 0; | ||
} | ||
ret.error = errQueue.length !== 0; | ||
@@ -792,0 +796,0 @@ ret.errorQueue = errQueue; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47342
1078