summaryrefslogtreecommitdiffstats
path: root/lib/constants
diff options
context:
space:
mode:
Diffstat (limited to 'lib/constants')
-rw-r--r--lib/constants/__tests__/configSchema.js10
-rw-r--r--lib/constants/configSchema.js2
2 files changed, 11 insertions, 1 deletions
diff --git a/lib/constants/__tests__/configSchema.js b/lib/constants/__tests__/configSchema.js
index 1541219..efc99b9 100644
--- a/lib/constants/__tests__/configSchema.js
+++ b/lib/constants/__tests__/configSchema.js
@@ -22,6 +22,16 @@ describe('configSchema', function() {
expect(result.errors.length).toBe(0);
});
+ it('should accept uppercase in filename', function() {
+ var result = validate({
+ structure: {
+ readme: 'BOOK.adoc'
+ }
+ });
+
+ expect(result.errors.length).toBe(0);
+ });
+
it('should not accept filepath', function() {
var result = validate({
structure: {
diff --git a/lib/constants/configSchema.js b/lib/constants/configSchema.js
index 9a45bb3..e693977 100644
--- a/lib/constants/configSchema.js
+++ b/lib/constants/configSchema.js
@@ -1,4 +1,4 @@
-var FILENAME_REGEX = '^[a-z-._\d,\s]+$';
+var FILENAME_REGEX = '^[a-zA-Z-._\d,\s]+$';
module.exports = {
'$schema': 'http://json-schema.org/schema#',