micromark-extension-gfm-autolink-literal
Advanced tools
Comparing version 0.5.2 to 0.5.3
{ | ||
"name": "micromark-extension-gfm-autolink-literal", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "micromark extension to support GFM autolink literals", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -284,3 +284,2 @@ var asciiAlphanumeric = require('micromark/dist/character/ascii-alphanumeric') | ||
var hasUnderscoreInLastLastSegment | ||
var hasDot | ||
@@ -320,3 +319,2 @@ return start | ||
effects.consume(code) | ||
hasDot = true | ||
hasUnderscoreInLastLastSegment = hasUnderscoreInLastSegment | ||
@@ -328,7 +326,3 @@ hasUnderscoreInLastSegment = undefined | ||
function done(code) { | ||
if ( | ||
hasDot && | ||
!hasUnderscoreInLastLastSegment && | ||
!hasUnderscoreInLastSegment | ||
) { | ||
if (!hasUnderscoreInLastLastSegment && !hasUnderscoreInLastSegment) { | ||
effects.exit('literalAutolinkDomain') | ||
@@ -356,2 +350,7 @@ return ok(code) | ||
// `)` | ||
if (code === 41) { | ||
return effects.check(paren, ok, atPathStart)(code) | ||
} | ||
return atPathStart(code) | ||
@@ -358,0 +357,0 @@ } |
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
18101
473