Created
March 25, 2023 09:02
-
-
Save theking2/4b96622f826cb080df7c595f9f46fc72 to your computer and use it in GitHub Desktop.
replace array() wih []
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"command": "array.replace", | |
"args": { | |
"info": "replace array() with []", | |
"find": "([\s\r\n])array\(([\s\r\n]*[^()\s](?:[^()]*[^()\s])?[\s\r\n]*)\)", | |
"replace": "$1[$2]", | |
"all": true, | |
"reg": true, | |
"flag": "gm" | |
} | |
}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment