adding dollar sign at the end of the regex to match the full line

This commit is contained in:
Aiday Marlen Kyzy 2024-03-21 12:13:20 +01:00
parent bdf352fe4e
commit 5228f5a8b6
No known key found for this signature in database
GPG Key ID: 24A8B53DBD26FF4E
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*$/
};