Skip to content

Conversation

@elfman
Copy link
Contributor

@elfman elfman commented Jan 1, 2019

Description

for #2351
add new feature: auto detect snippet language
try to detect after pasting and mode has not been set

detect

Issue fixed

Type of changes

  • ⚪ Bug fix (Change that fixed an issue)
  • ⚪ Breaking change (Change that can cause existing functionality to change)
  • ⚪ Improvement (Change that improves the code. Maybe performance or development improvement)
  • 🔘 Feature (Change that adds new functionality)
  • ⚪ Documentation change (Change that modifies documentation. Maybe typo fixes)

Checklist:

  • 🔘 My code follows the project code style
  • ⚪️ : I have written test for my code and it has been tested
  • 🔘 All existing tests have been passed
  • 🔘 I have attached a screenshot/video to visualize my change if possible

only try to detect after pasting and mode has not been set and default snippet language is "Auto Detect"
@guardrails
Copy link

guardrails bot commented Jan 1, 2019

⚠️ We detected security issues in this pull request:

Insecure Use of Regular Expressions (1)

More info on how to fix Insecure Use of Regular Expressions in Javascript.


Insecure Use of Language/Framework API (1)

More info on how to fix Insecure Use of Language/Framework API in Javascript.

@elfman
Copy link
Contributor Author

elfman commented Jan 1, 2019

@ZeroX-DG my pr can not pass the check, but what it figures out has nothing to do with what I want to change.
Should I fix it in this pr?

@ZeroX-DG ZeroX-DG added the awaiting review ❇️ Pull request is awaiting a review. label Jan 2, 2019
@ZeroX-DG
Copy link
Member

ZeroX-DG commented Jan 2, 2019

@Rokt33r Should he fix it in this PR or just leave it and you can open another PR to fix it?

@Rokt33r
Copy link
Member

Rokt33r commented Jan 2, 2019

@ZeroX-DG It should be fixed in another pr. Please ignore it.

})

this.setMode(this.props.mode)
if (!this.props.mode && this.props.value) {
Copy link
Member

Choose a reason for hiding this comment

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

Should you check for config.editor.snippetDefaultLanguage === 'Auto Detect' here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

Copy link
Member

@ZeroX-DG ZeroX-DG left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@ZeroX-DG ZeroX-DG added approved 👍 Pull request has been approved by sufficient reviewers. and removed awaiting review ❇️ Pull request is awaiting a review. labels Jan 4, 2019
@Rokt33r Rokt33r added next release (v0.11.13) and removed approved 👍 Pull request has been approved by sufficient reviewers. labels Jan 6, 2019
@Rokt33r Rokt33r merged commit 04ae8a8 into BoostIO:master Jan 6, 2019
@ZeroX-DG ZeroX-DG mentioned this pull request Jan 6, 2019
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.

3 participants