The Wayback Machine - https://web.archive.org/web/20201016145325/https://github.com/eggjs/egg-core/pull/177
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(core): modify camelize error message #177

Open
wants to merge 3 commits into
base: master
from

Conversation

@army8735
Copy link
Contributor

@army8735 army8735 commented Aug 5, 2018

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected 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.

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');

This comment has been minimized.

@popomore

popomore Aug 16, 2018
Member

It should be reg

This comment has been minimized.

@army8735

army8735 Aug 20, 2018
Author Contributor

well done

@codecov
Copy link

@codecov codecov bot commented Aug 20, 2018

Codecov Report

Merging #177 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #177   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          18     18           
  Lines         958    958           
=====================================
  Hits          958    958
Impacted Files Coverage Δ
lib/loader/file_loader.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ae38fa4...e1b9ddb. Read the comment docs.

@@ -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');

This comment has been minimized.

@dead-horse

dead-horse Aug 27, 2018
Member

this line should be regexp

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants
You can’t perform that action at this time.