docs-and-graphs
Advanced tools
Comparing version 0.1.6 to 0.1.7
{ | ||
"name": "docs-and-graphs", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "", |
const PARENTHESIS_TYPES = [ | ||
{ | ||
left: '(', right: ')', | ||
}, { | ||
left: '[', right: ']', | ||
}] | ||
}, // Removing support for [] as I haven't seen it in the wild | ||
// { | ||
// left: '[', right: ']', | ||
// } | ||
] | ||
@@ -8,0 +10,0 @@ function keyValue ({ content, parenthesis }) { |
@@ -12,4 +12,2 @@ export default { | ||
[mood:: okay] | [length:: 2 hours] | ||
subject :: inline :: field | ||
@@ -23,4 +21,2 @@ | ||
[subject :: mood:: okay] | [subject :: length:: 2 hours] | ||
No inline fields | ||
@@ -30,4 +26,6 @@ | ||
[[Bob]] :: foaf:knows :: [[Alice]] | ||
`, | ||
} |
@@ -5,3 +5,4 @@ import { expect } from 'expect' | ||
import { | ||
extractInlineFields, removeInlineFields, | ||
extractInlineFields, | ||
removeInlineFields, | ||
} from '../../src/text/inlineFields.js' | ||
@@ -14,3 +15,3 @@ | ||
'**Rating**:: 6', | ||
'[mood:: okay] | [length:: 2 hours]', | ||
'(mood:: okay) && (length:: 2 hours)', | ||
'subject :: inline :: field', | ||
@@ -20,6 +21,8 @@ 'nested ( subject :: inline :: field )', | ||
'subject :: **Rating**:: 6', | ||
'[subject :: mood:: okay] | [subject :: length:: 2 hours]', | ||
'(subject :: mood:: okay) && (subject :: length:: 2 hours)', | ||
'No inline fields', | ||
'Too :: many :: inline :: fields ', | ||
'(a::b::c) (a::f::d)'] | ||
'(a::b::c) (a::f::d)', | ||
'[[Alice]] :: foaf:knows :: [[Bob]]', | ||
'http://example.org :: is a :: website'] | ||
@@ -34,2 +37,5 @@ expect.extend({ toMatchSnapshot }) | ||
console.log(current) | ||
console.log(fields) | ||
expect(fields).toMatchSnapshot(this) | ||
@@ -36,0 +42,0 @@ }) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
260026
5756