dgeni-packages
Advanced tools
Comparing version 0.10.7 to 0.10.8
@@ -11,3 +11,3 @@ var _ = require('lodash'); | ||
return { | ||
ignoredLinks: [/^http(?:s)?:\/\//, /^mailto:/], | ||
ignoredLinks: [/^http(?:s)?:\/\//, /^mailto:/, /^chrome:/], | ||
pathVariants: ['', '/', '.html', '/index.html'], | ||
@@ -14,0 +14,0 @@ checkDoc: function(doc) { return doc.path && path.extname(doc.outputPath) === '.html'; }, |
@@ -59,3 +59,4 @@ var path = require('canonical-path'); | ||
{ renderedContent: '<a href="http://www.google.com">foo</a>', outputPath: 'a.html', path: 'a' }, | ||
{ renderedContent: '<a href="mailto:foo@foo.com">foo</a>', outputPath: 'c.html', path: 'c' } | ||
{ renderedContent: '<a href="mailto:foo@foo.com">foo</a>', outputPath: 'c.html', path: 'c' }, | ||
{ renderedContent: '<a href="chrome://accessibility">Accessibility</a>', outputPath: 'c.html', path: 'c' } | ||
]); | ||
@@ -62,0 +63,0 @@ expect(mockLog.warn).not.toHaveBeenCalled(); |
# Changelog | ||
## v0.10.8 15th December 2014 | ||
* fix(base/checkAnchorLinksProcessor): ignore "chrome://..." links 3d5dca46 | ||
* fix(nunjucks/firstLine): don't break inline tags when extracting first line 19a642f1 | ||
## v0.10.7 18th November 2014 | ||
@@ -4,0 +10,0 @@ |
@@ -10,6 +10,4 @@ /** | ||
str = str | ||
.split("\n")[0]; | ||
return str; | ||
return str.match(/([^$]*\{@[^}]+\})|.*$/m)[0]; | ||
} | ||
}; |
var filter = require('./first-line'); | ||
describe("firstLine filter", function() { | ||
it("should have the name 'firstLine'", function() { | ||
expect(filter.name).toEqual('firstLine'); | ||
}); | ||
it("should return the whole string if it contains only one line", function() { | ||
expect(filter.process('this is a line')).toEqual('this is a line'); | ||
}); | ||
it("should return the content up to the first newline", function() { | ||
expect(filter.process('this is a line\nthis is another line')).toEqual('this is a line'); | ||
}); | ||
it("should return the contents until inline-tag closes", function() { | ||
expect(filter.process( | ||
'this is a {@otherTag first line\n' + | ||
'second line\n'+ | ||
'third line} more stuff on the third line\n' + | ||
'this is another line')) | ||
.toEqual( | ||
'this is a {@otherTag first line\n' + | ||
'second line\n'+ | ||
'third line}' | ||
); | ||
}); | ||
}); | ||
{ | ||
"name": "dgeni-packages", | ||
"version": "0.10.7", | ||
"version": "0.10.8", | ||
"description": "A collection of dgeni packages for generating documentation from source code", | ||
@@ -5,0 +5,0 @@ "scripts": { |
327452
6218