mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-03-01 03:29:35 +00:00
Compare commits
3 commits
1af9ed26b7
...
b8cb971b2d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b8cb971b2d | ||
|
|
93b31a379b | ||
|
|
d8632ad370 |
2 changed files with 6 additions and 2 deletions
|
|
@ -38,6 +38,7 @@ Add yourself to the list,
|
|||
* Alex Maier
|
||||
* Andrea Ruffini Perico
|
||||
* Andrew Cox
|
||||
* Benjamin Newman
|
||||
* Christoph Boss (@Kampfwurst)
|
||||
* Daniel Ziegenberg (@ziegenberg)
|
||||
* Devin Dean (@dd2594gh)
|
||||
|
|
|
|||
|
|
@ -726,11 +726,14 @@
|
|||
}
|
||||
|
||||
:do {
|
||||
:local Line [ :pick $Input 0 [ :find $Input "\n" ] ];
|
||||
# Do *NOT* try :deserialize here to split lines. It can fail with
|
||||
# scripts, and it *does* fail with global-functions!
|
||||
:local Len [ :find $Input "\n" ];
|
||||
:local Line [ :pick $Input 0 $Len ];
|
||||
:if ([ :typeof [ :find $Line $Pattern ] ] = "num") do={
|
||||
:return $Line;
|
||||
}
|
||||
:set Input [ :pick $Input ([ :find $Input "\n" ] + 1) [ :len $Input ] ];
|
||||
:set Input [ :pick $Input ($Len + 1) [ :len $Input ] ];
|
||||
} while=([ :len $Input ] > 0);
|
||||
|
||||
:return [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue