-
Notifications
You must be signed in to change notification settings - Fork 404
250 precursor #293
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
250 precursor #293
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
0343df1
more accurate paramToJson in parameter_hunter
92e9a00
updating unit tests for parameter_hunter paramToJson
695471c
minor edit
8b3551f
another param string parser
77a2089
bugs fixed, unit tests working
e3bb31e
variable name change
df0e804
Added (failing for now) test to highlight the bug.
695a936
Added another test for another bug (parenthesis in value confuses pat…
2a297f4
Added additional parameter hunter tests.
c8acb5a
replacing JSON with JSON5 for better error messaging
9348441
working paramToJson
cf080af
stricter unit tests
68a6c35
comment updates
37ad825
simplfying paramToJson further
a7e52cd
simplfying paramToJson further
f3ee0f1
comment update
db17e81
tightened parameter key search
83f6a4f
comment update
ed13128
accommodating decimals and exponentials as valid numeric values
7bcea0a
comment update
2317cae
fixing array instead of number typo
3583251
more comments
704346a
spacing to pass eslint
a0d33d3
removing unnecessary escape
4690f79
fixing substring param typo
eedaecc
renaming json5 instances
7fa7f6b
comment update
3f7d984
Merge branch 'dev' of github.com:pattern-lab/patternlab-node into 250…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
node_modules/ | ||
npm-debug.log | ||
.DS_Store | ||
latest-change.txt | ||
patternlab.json | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This regex can be simplified to
/^"(.)*?"/
. The.
matches any character, whitespace included.Same goes for the regex below.
I made this change locally on my machine and re-ran the tests to verify that it does indeed work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@james-nash
(.)*?
doesn't work with newline characters.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@e2tha-e Ah! OK, I missed that. Ignore that comment then.