Skip to content

This pull request adds support for several RegEx character classes #9

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

Merged
merged 25 commits into from
Aug 14, 2017

Conversation

corsonknowles
Copy link
Contributor

@corsonknowles corsonknowles commented Aug 9, 2017

Newly included character classes:
// "\d" any non-digit character
// \b word boundary
// \B not-word boundary
// carriage return \r

The above comments can be removed from methodMatch.js, and are only included to make code review easier.

Newly added:
support for negation of a group: none of abc -> [^abc]

Removed these RegEx characters that are not supported in JavaScript
// \A start of string, contrast with ^ which breaks at new lines
// \z end of string, contrast with $ which breaks at new lines

@codecov-io
Copy link

codecov-io commented Aug 9, 2017

Codecov Report

Merging #9 into master will decrease coverage by 3.08%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #9      +/-   ##
==========================================
- Coverage    96.7%   93.61%   -3.09%     
==========================================
  Files          19       19              
  Lines         485      501      +16     
  Branches       71       71              
==========================================
  Hits          469      469              
- Misses         16       32      +16
Impacted Files Coverage Δ
lib/Language/Helpers/methodMatch.js 100% <ø> (ø) ⬆️
lib/Builder.js 91.13% <0%> (-6.6%) ⬇️

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 c8c62f8...a4185a3. Read the comment docs.

@KarimGeiger
Copy link
Member

Hi @corsonknowles, thanks again for this contribution. It looks good to me.

@teabyii, what's your opinion here? Are you missing something, or can we merge those changes?

Copy link
Member

@teabyii teabyii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove package-lock.json

package.json Outdated
@@ -33,5 +33,8 @@
"istanbul": "^0.4.5",
"mocha": "^3.0.2",
"mocha-lcov-reporter": "^1.2.0"
},
"dependencies": {
"test": "^0.6.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it needs this dependency.

@teabyii
Copy link
Member

teabyii commented Aug 11, 2017

Thank you for the PR, and try to increase the code coverage?

@teabyii
Copy link
Member

teabyii commented Aug 12, 2017

Why remove submodule and add Test-Rules code directly to this repo? I don't think it's a good way to maintenance the common test rules for different languages.

@teabyii teabyii mentioned this pull request Aug 12, 2017
@corsonknowles
Copy link
Contributor Author

corsonknowles commented Aug 12, 2017 via email

@corsonknowles
Copy link
Contributor Author

corsonknowles commented Aug 12, 2017 via email

lib/Builder.js Outdated
'tab': {
'add': '\\t',
'type': METHOD_TYPE_CHARACTER,
'allowed': METHOD_TYPES_ALLOWED_FOR_CHARACTERS
},
'vertical tab': {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please stick with the camelCase convention there.

@corsonknowles
Copy link
Contributor Author

corsonknowles commented Aug 13, 2017 via email

@teabyii
Copy link
Member

teabyii commented Aug 14, 2017

Well done. Now Wait for PR for Test-rules to be merged.

@corsonknowles
Copy link
Contributor Author

corsonknowles commented Aug 14, 2017 via email

@teabyii
Copy link
Member

teabyii commented Aug 14, 2017

@corsonknowles Reorganize the commits and put them in one commit please? That looks more beautiful, thank you.

@KarimGeiger
Copy link
Member

@teabyii you can do this using GitHub while merging. Just select "Squash and merge" to combine them.

@teabyii
Copy link
Member

teabyii commented Aug 14, 2017

Ok, I got it.

@teabyii teabyii merged commit 522189d into SimpleRegex:master Aug 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants