Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b124cee

Browse filesBrowse files
committed
fixed deployment function "docComments"
1 parent 4f7667d commit b124cee
Copy full SHA for b124cee

3 files changed

+58-484Lines changed: 58 additions & 484 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎buildUserscript.cfg‎

Copy file name to clipboardExpand all lines: buildUserscript.cfg
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ enabled=false
1818
fnc=remove_line_comments
1919
open_tag=//
2020
close_tag=$
21+
start_at_line=22
2122

2223
# This will remove all multiline comments starting with /* and ending with */
2324
[blockComments]
@@ -28,7 +29,7 @@ close_tag=\*/
2829

2930
# This will remove all doc comments starting with /** and ending with */
3031
[docComments]
31-
enabled=false
32+
enabled=true
3233
fnc=remove_doc_comments
3334
open_tag=/**
3435
close_tag=*/
@@ -37,3 +38,8 @@ close_tag=*/
3738
[emptyLines]
3839
enabled=true
3940
fnc=remove_blank_lines
41+
42+
# Removes all leading and trailing spaces and tabs of each line
43+
[trimSpaces]
44+
enabled=false
45+
fnc=trim_spaces
Collapse file

‎buildUserscript.sh‎

Copy file name to clipboardExpand all lines: buildUserscript.sh
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ remove_block_comments() {
171171
remove_doc_comments() {
172172
open_tag="$(str_escape_given "${open_tag}" '*')"
173173
close_tag="$(str_escape_given "${close_tag}" '*')"
174-
local result="$(perl -0777 -pe "s{\R?${open_tag}.*?${close_tag}}{}sg" "${output_file}")"
174+
local result="$(perl -0777 -pe "s{\R?${open_tag}.*?${close_tag}}{\n}sg" "${output_file}")"
175175
echo "${result}" > "${output_file}"
176176
return 0
177177
}
@@ -184,6 +184,13 @@ remove_blank_lines() {
184184
}
185185

186186

187+
## Function to process operation 'trimSpaces'
188+
trim_spaces() {
189+
sed -i 's/^[ \t]*//;s/[ \t]*$//' "${output_file}"
190+
return 0
191+
}
192+
193+
187194

188195
#######################################################################################
189196
### BASIC FUNCTIONS ###

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.