Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7269e04

Browse files
added note regarding escape characters in JS strings
1 parente47f9b6 commit7269e04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎_docs/codefresh-yaml/condition-expression-syntax.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ exposed by each individual pipeline step]({{site.baseurl}}/docs/codefresh-yaml/v
9494
| length| string| Length of a string.|`length("gump") == 4`|
9595
| includes| 0: string - main string<br>1: string - string to search for| Whether a search string is located within the main string.|`includes("codefresh", "odef") == true`|
9696
| indexOf| 0: string - main string<br>1: string - string to search for| Index of a search string if it is found inside the main string|`indexOf("codefresh", "odef") == 1`|
97-
| match| 0: string - main string<br>1: string - regular expression string,[JS style](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) (Note: JS strings are expected to haveescapecharacters before special characters, forexample`"^\\d+$"` instead of`"^\d+$"`)<br>2: boolean - ignore case| Search for a regular expression inside a string, ignoring or not ignoring case|`match("hello there you", "..ll.", false) == true` <br>`match("hello there you", "..LL.", false) == false` <br>`match("hello there you", "hell$", true) == false` <br>`match("hello there you", "^hell", true) == true` <br>`match("hello there you", "bye", false) == false`|
98-
| Variable| string| Search for the value of a variable|`Variable('some-clone')`|
99-
| Member| 0: string - variable name<br>1: string - member name| Search for the value of a variable member|`Member('some-clone', 'working-directory')`|
97+
| match| 0: string - main string<br>1: string - regular expression string,[JS style](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) (Note:inJS strings, the backslash`\` is anescapecharacter so in order to use a literal backslash, you need to escape it. Forexample:`"^\\d+$"` instead of`"^\d+$"`)<br>2: boolean - ignore case| Search for a regular expression inside a string, ignoring or not ignoring case|`match("hello there you", "..ll.", false) == true` <br>`match("hello there you", "..LL.", false) == false` <br>`match("hello there you", "hell$", true) == false` <br>`match("hello there you", "^hell", true) == true` <br>`match("hello there you", "bye", false) == false`|
98+
| Variable| string| Search for the value of a variable|`Variable('some-clone')`|
99+
| Member| 0: string - variable name<br>1: string - member name| Search for the value of a variable member|`Member('some-clone', 'working-directory')`|
100100

101101
##What to read next
102102

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp