changing to round brackets inside of the regex pattern

This commit is contained in:
Aiday Marlen Kyzy
2024-03-21 12:43:17 +01:00
parent 5228f5a8b6
commit 62275bbca6
2 changed files with 2 additions and 2 deletions

View File

@@ -139,7 +139,7 @@
"pattern": "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*\\*([ ]([^\\*]|\\*(?!/))*)?$"
},
"indentNextLinePattern": {
"pattern": "^.*[if|while|for]\\s*\\(.*\\)\\s*$"
"pattern": "^.*(if|while|for)\\s*\\(.*\\)\\s*$"
}
},
"onEnterRules": [

View File

@@ -8,5 +8,5 @@ export const javascriptIndentationRules = {
increaseIndentPattern: /^((?!\/\/).)*(\{([^}"'`]*|(\t|[ ])*\/\/.*)|\([^)"'`]*|\[[^\]"'`]*)$/,
// e.g. * ...| or */| or *-----*/|
unIndentedLinePattern: /^(\t|[ ])*[ ]\*[^/]*\*\/\s*$|^(\t|[ ])*[ ]\*\/\s*$|^(\t|[ ])*[ ]\*([ ]([^\*]|\*(?!\/))*)?$/,
indentNextLinePattern: /^.*[if|while|for]\s*\(.*\)\s*$/
indentNextLinePattern: /^.*(if|while|for)\s*\(.*\)\s*$/
};