Skip to content

Removing hard-coded list#4

Open
farfromunique wants to merge 1 commit intoaabluedragon:masterfrom
farfromunique:master
Open

Removing hard-coded list#4
farfromunique wants to merge 1 commit intoaabluedragon:masterfrom
farfromunique:master

Conversation

@farfromunique
Copy link
Copy Markdown

Removing hard-coded

  • Replaced hard-coded numbers of spaces with the equivalent dynamic code.

Added an EditorConfig

  • My preferences are set, but can be updated.

Replaced parameter "text" with "input_text"

  • This makes it a bit clearer to people reading the code (who are perhaps used to other languages) that the variable is a parameter, not a class

Minor version bump

  • now at v.0.99.4

Replaced hard-coded numbers of spaces with the equivalent dynamic code.
Added an EditorConfig

My preferences are set, but can be updated.
Replaced parameter "text" with "input_text"

This makes it a bit clearer to people reading the code (who are perhaps used to other languages) that the variable is a parameter, not a class
Comment thread index.js
return input_text.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")");
}

module.exports = new vkbeautify();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why this change as original library has window.vkbeautify = new vkbeautify();
Ref: https://github.com/vkiryukhin/vkBeautify/blob/master/vkbeautify.js

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.

2 participants