summaryrefslogtreecommitdiffstats
path: root/docs/data
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-01-17 12:52:08 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-01-17 12:52:08 +0100
commit80e8bd3b721bd1ef5cd9dad6f27d9158834296d9 (patch)
tree2de1d275a4f570241613f36f1348eb39103e33f2 /docs/data
parentb661132e0ac651fa229511f05f58554717f4d0d0 (diff)
docs: Regen docshelper
Diffstat (limited to 'docs/data')
-rw-r--r--docs/data/docs.json25
1 files changed, 21 insertions, 4 deletions
diff --git a/docs/data/docs.json b/docs/data/docs.json
index 620aeb179..c55c27347 100644
--- a/docs/data/docs.json
+++ b/docs/data/docs.json
@@ -1718,7 +1718,7 @@
"^postcss$"
],
"osEnv": [
- "(?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM)$"
+ "(?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM|GO\\w+)$"
]
},
"funcs": {
@@ -4959,11 +4959,28 @@
],
"Examples": [
[
- "{{ findRE \"[G|g]o\" \"Hugo is a static side generator written in Go.\" \"1\" }}",
+ "{{ findRE \"[G|g]o\" \"Hugo is a static side generator written in Go.\" 1 }}",
"[go]"
]
]
},
+ "FindRESubmatch": {
+ "Description": "FindRESubmatch returns returns a slice of strings holding the text of the leftmost match of the regular expression in s and the matches, if any, of its subexpressions.\n\nBy default all matches will be included. The number of matches can be limited with the optional limit parameter. A return value of nil indicates no match.",
+ "Args": [
+ "expr",
+ "content",
+ "limit"
+ ],
+ "Aliases": [
+ "findRESubmatch"
+ ],
+ "Examples": [
+ [
+ "{{ findRESubmatch `\u003ca\\s*href=\"(.+?)\"\u003e(.+?)\u003c/a\u003e` `\u003cli\u003e\u003ca href=\"#foo\"\u003eFoo\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"#bar\"\u003eBar\u003c/a\u003e\u003c/li\u003e` | print | safeHTML }}",
+ "[[\u003ca href=\"#foo\"\u003eFoo\u003c/a\u003e #foo Foo] [\u003ca href=\"#bar\"\u003eBar\u003c/a\u003e #bar Bar]]"
+ ]
+ ]
+ },
"FirstUpper": {
"Description": "FirstUpper converts s making the first character upper case.",
"Args": [
@@ -5250,9 +5267,9 @@
]
},
"Truncate": {
- "Description": "Truncate truncates a given string to the specified length.",
+ "Description": "Truncate truncates the string in s to the specified length.",
"Args": [
- "a",
+ "s",
"options"
],
"Aliases": [