Fix format of markdown query help files

This commit is contained in:
Owen Mansel-Chan
2025-06-11 16:50:06 +01:00
parent afc78ced50
commit 9521994adc
32 changed files with 85 additions and 152 deletions

View File

@@ -1,7 +1,3 @@
# Use of `String#replaceAll` with a first argument which is not a regular expression
Using `String#replaceAll` is less performant than `String#replace` when the first argument is not a regular expression.
## Overview
The `String#replaceAll` method is designed to work with regular expressions as its first parameter. When you use a simple string without any regex patterns (like special characters or syntax), it's more efficient to use `String#replace` instead. This is because `replaceAll` has to compile the input as a regular expression first, which adds unnecessary overhead when you are just replacing literal text.