idea: add something like "matches" function that will be processed by when, if present, capable to pass match object to when block
when(text) {
"(.*):([0-9]+)".re -> { name, number ->
// ...
}
}
// it calls Regexp::match(text)
idea: add something like "matches" function that will be processed by `when`, if present, capable to pass match object to when block
```
when(text) {
"(.*):([0-9]+)".re -> { name, number ->
// ...
}
}
// it calls Regexp::match(text)
```
Regex we implemented in 0.9.0 and add operator =~ and !~ for it from Ruby, and for when we'll think of using operatorMatch in general or make when(x) { > 0 -> {} } form that might be better in the case
Regex we implemented in 0.9.0 and add operator =~ and !~ for it from Ruby, and for when we'll think of using `operatorMatch` in general or make when(x) { > 0 -> {} } form that might be better in the case
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
for starters
idea: add something like "matches" function that will be processed by
when, if present, capable to pass match object to when blockRegex we implemented in 0.9.0 and add operator =~ and !~ for it from Ruby, and for when we'll think of using
operatorMatchin general or make when(x) { > 0 -> {} } form that might be better in the case