Initial community commit

This commit is contained in:
Jef
2024-09-24 14:54:57 +02:00
parent 537bcbc862
commit 20d28e80a5
16810 changed files with 4640254 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
Escapes the string for use in Lua patterns. Escapes the following characters `( ) . % + - * ? [ ] ^ $` with `%`.
```lua
escaped = string.escapepattern("s")
```
### Parameters ###
`s` is the string to escape.
### Return Value ###
Returns the input string escaped for use in Lua patterns.
### Examples ###
```lua
local match = filename:match(string.escapepattern("boost_filesystem-vc140.1.61.0.0"))
```
### Availability ###
Premake 5.0 or later.