Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upstyle(core): modify camelize error message #177
Conversation
File name can not be a pure number. If so, egg-core will throw an exception with a regular expression matching message which is confused.
| @@ -225,7 +225,7 @@ describe('test/loader/file_loader.test.js', () => { | |||
| directory: path.join(dirBase, 'error/dotdir'), | |||
| target: mod, | |||
| }).load(); | |||
| }, /dot.dir is not match 'a-z0-9_-' in dot.dir\/a.js/); | |||
| }, 'dot.dir is not match \'^[a-z][a-z0-9_-]*$\' in dot.dir\/a.js'); | |||
popomore
Aug 16, 2018
Member
It should be reg
It should be reg
army8735
Aug 20, 2018
Author
Contributor
well done
well done
Codecov Report
@@ Coverage Diff @@
## master #177 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 18 18
Lines 958 958
=====================================
Hits 958 958
Continue to review full report at Codecov.
|
| @@ -235,13 +235,13 @@ describe('test/loader/file_loader.test.js', () => { | |||
| directory: path.join(dirBase, 'error/underscore-dir'), | |||
| target: mod, | |||
| }).load(); | |||
| }, /_underscore is not match 'a-z0-9_-' in _underscore\/a.js/); | |||
| }, '_underscore is not match \'^[a-z][a-z0-9_-]*$\' in _underscore\/a.js'); | |||
dead-horse
Aug 27, 2018
Member
this line should be regexp
this line should be regexp

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

Checklist
npm testpassesAffected core subsystem(s)
Description of change
File name can not be a pure number.
If so, egg-core will throw an exception with a regular expression matching message which is confused.