jskos-tools
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -382,3 +382,3 @@ const _ = { | ||
const doubleQuote = quoteChar + quoteChar | ||
const quote = s => quoteChar + (s == null ? "" : s.replace(quoteChar,doubleQuote)) + quoteChar | ||
const quote = s => quoteChar + (s == null ? "" : s.split(quoteChar).join(doubleQuote)) + quoteChar | ||
@@ -385,0 +385,0 @@ return row => row.map(quote).join(delimiter) + lineTerminator |
{ | ||
"name": "jskos-tools", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Tools for working with the JSKOS data format.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/gbv/jskos-tools", |
@@ -270,3 +270,3 @@ const assert = require("assert") | ||
from: { memberSet: [{ notation: ["0"], prefLabel: { en: "'" }}] }, | ||
to: { memberSet: [{ notation: ["a'c"], prefLabel: { en: "0" } }, { notation: ["b\"d"], prefLabel: { en: "1" } }] }, | ||
to: { memberSet: [{ notation: ["a'c"], prefLabel: { en: "0" } }, { notation: ["b\"d\""], prefLabel: { en: "1" } }] }, | ||
creator: [{ prefLabel: { en: "someone" } }] | ||
@@ -321,5 +321,5 @@ } | ||
results: { | ||
optionsNone: "\"0\",\"a'c\",\"b\"\"d\",\"\"\n", | ||
optionsAllColumns: "\"\",\"0\",\"'\",\"\",\"a'c\",\"0\",\"b\"\"d\",\"1\",\"\",\"someone\"\n", | ||
optionsOther: "'0';'a''c';'b\"d';''\n", | ||
optionsNone: "\"0\",\"a'c\",\"b\"\"d\"\"\",\"\"\n", | ||
optionsAllColumns: "\"\",\"0\",\"'\",\"\",\"a'c\",\"0\",\"b\"\"d\"\"\",\"1\",\"\",\"someone\"\n", | ||
optionsOther: "'0';'a''c';'b\"d\"';''\n", | ||
} | ||
@@ -331,5 +331,5 @@ }, | ||
results: { | ||
optionsNone: "\"fromNotation\",\"toNotation\",\"toNotation2\",\"type\"\n\"0\",\"a'c\",\"\",\"broad\"\n\"0\",\"a'c\",\"b\"\"d\",\"\"\n", | ||
optionsAllColumns: "\"fromScheme\",\"fromNotation\",\"fromLabel\",\"toScheme\",\"toNotation\",\"toLabel\",\"toNotation2\",\"toLabel2\",\"type\",\"creator\"\n\"A\",\"0\",\"'\",\"B\",\"a'c\",\"0\",\"\",\"\",\"broad\",\"\"\n\"\",\"0\",\"'\",\"\",\"a'c\",\"0\",\"b\"\"d\",\"1\",\"\",\"someone\"\n", | ||
optionsOther: "'fromNotation';'toNotation';'toNotation2';'type'\n'0';'a''c';'';'broad'\n'0';'a''c';'b\"d';''\n", | ||
optionsNone: "\"fromNotation\",\"toNotation\",\"toNotation2\",\"type\"\n\"0\",\"a'c\",\"\",\"broad\"\n\"0\",\"a'c\",\"b\"\"d\"\"\",\"\"\n", | ||
optionsAllColumns: "\"fromScheme\",\"fromNotation\",\"fromLabel\",\"toScheme\",\"toNotation\",\"toLabel\",\"toNotation2\",\"toLabel2\",\"type\",\"creator\"\n\"A\",\"0\",\"'\",\"B\",\"a'c\",\"0\",\"\",\"\",\"broad\",\"\"\n\"\",\"0\",\"'\",\"\",\"a'c\",\"0\",\"b\"\"d\"\"\",\"1\",\"\",\"someone\"\n", | ||
optionsOther: "'fromNotation';'toNotation';'toNotation2';'type'\n'0';'a''c';'';'broad'\n'0';'a''c';'b\"d\"';''\n", | ||
} | ||
@@ -336,0 +336,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
86876