Comparing version 0.2.4 to 0.2.5
@@ -51,3 +51,3 @@ // **N3Util** provides N3 utility functions | ||
isQName: function (entity) { | ||
return entity && /^[^:\/]*:[^:\/]+$/.test(entity); | ||
return entity && /^[^:\/"']*:[^:\/"']+$/.test(entity); | ||
}, | ||
@@ -54,0 +54,0 @@ |
{ | ||
"name": "n3", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "Lightning fast, asynchronous, streaming Turtle / N3 / RDF library.", | ||
@@ -29,3 +29,3 @@ "author": "Ruben Verborgh <ruben.verborgh@gmail.com>", | ||
"uglify-js": "~2.4.3", | ||
"browserify": ">=2.36.1" | ||
"browserify": ">=3.x" | ||
}, | ||
@@ -45,27 +45,11 @@ "scripts": { | ||
"harness": "mocha", | ||
"browsers": { | ||
"ie": [ | ||
9, | ||
10 | ||
], | ||
"firefox": [ | ||
24, | ||
25 | ||
], | ||
"chrome": [ | ||
30, | ||
31, | ||
"canary" | ||
], | ||
"safari": [ | ||
6 | ||
], | ||
"iphone": [ | ||
6 | ||
], | ||
"ipad": [ | ||
6 | ||
] | ||
} | ||
"browsers": [ | ||
"ie/9..latest", | ||
"firefox/24..latest", | ||
"chrome/29..latest", | ||
"safari/6..latest", | ||
"iphone/6..latest", | ||
"ipad/6..latest" | ||
] | ||
} | ||
} |
@@ -6,3 +6,3 @@ # Lightning fast, asynchronous, streaming Turtle for JavaScript | ||
- [**Turtle parsing**](#parsing) _([fully compliant](https://github.com/RubenVerborgh/N3.js/tree/master/spec) with the [latest candidate recommendation](http://www.w3.org/TR/turtle/))_ | ||
- [**Turtle parsing**](#parsing) _([fully compliant](https://github.com/RubenVerborgh/N3.js/tree/master/spec) with the [Turtle standard](http://www.w3.org/TR/turtle/))_ | ||
- [**in-memory storage and manipulation**](#storing) | ||
@@ -9,0 +9,0 @@ - [**Turtle writing**](#writing) |
@@ -5,2 +5,3 @@ #!/usr/bin/env node | ||
var fs = require('fs'), | ||
path = require('path'), | ||
request = require('request'), | ||
@@ -38,5 +39,5 @@ exec = require('child_process').exec, | ||
// Create the folders that will contain the spec files and results | ||
var specFolder = './spec/', | ||
testFolder = specFolder + 'turtle/', | ||
outputFolder = testFolder + 'results/'; | ||
var specFolder = __dirname, | ||
testFolder = path.join(specFolder, 'turtle'), | ||
outputFolder = path.join(testFolder, 'results'); | ||
[specFolder, testFolder, outputFolder].forEach(function (folder) { | ||
@@ -138,3 +139,3 @@ if (!fs.existsSync(folder)) | ||
var localFile = testFolder + testFile; | ||
var localFile = path.join(testFolder, testFile); | ||
fs.exists(localFile, function (exists) { | ||
@@ -162,3 +163,3 @@ if (exists) | ||
// Create the results file | ||
var resultFile = outputFolder + test.action.replace(/\.ttl$/, '.nt'), | ||
var resultFile = path.join(outputFolder, test.action.replace(/\.ttl$/, '.nt')), | ||
resultStream = fs.createWriteStream(resultFile); | ||
@@ -329,3 +330,3 @@ | ||
// Create the report file | ||
var reportFile = outputFolder + 'earl-report.ttl', | ||
var reportFile = path.join(outputFolder, 'earl-report.ttl'), | ||
report = fs.createWriteStream(reportFile), | ||
@@ -359,3 +360,4 @@ date = new Date().toISOString(); | ||
writeln(' dc:title "N3.js";'); | ||
writeln(' dc:description "N3.js is an asynchronous, streaming Turtle parser for JavaScript."@en;'); | ||
writeln(' dc:description "N3.js is an asynchronous, streaming Turtle parser for JavaScript."@en;'); | ||
writeln(' doap:description "N3.js is an asynchronous, streaming Turtle parser for JavaScript."@en;'); | ||
writeln(' dc:creator <', developer, '>.'); | ||
@@ -362,0 +364,0 @@ writeln(); |
@@ -471,2 +471,3 @@ var N3Lexer = require('../N3').Lexer; | ||
lexer.addChunk('<b> '); | ||
lexer.end(); | ||
@@ -473,0 +474,0 @@ it('parses only the first chunk (plus EOF)', function () { |
@@ -233,2 +233,6 @@ var N3Util = require('../N3').Util; | ||
it('does not match a literal with a colon', function () { | ||
N3Util.isQName('"a:b"').should.be.false; | ||
}); | ||
it('does not match null', function () { | ||
@@ -235,0 +239,0 @@ expect(N3Util.isQName(null)).to.be.null; |
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
172978
3505