mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-04-18 11:09:38 +00:00
Compare commits
No commits in common. "1af9ed26b7bfb3912bc71459c7975be042af7e4b" and "68ed97205cc2e0457cd9bfe08823052c65fe901a" have entirely different histories.
1af9ed26b7
...
68ed97205c
1 changed files with 2 additions and 5 deletions
|
|
@ -726,14 +726,11 @@
|
|||
}
|
||||
|
||||
:do {
|
||||
# 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 ];
|
||||
:local Line [ :pick $Input 0 [ :find $Input "\n" ] ];
|
||||
:if ([ :typeof [ :find $Line $Pattern ] ] = "num") do={
|
||||
:return $Line;
|
||||
}
|
||||
:set Input [ :pick $Input ($Len + 1) [ :len $Input ] ];
|
||||
:set Input [ :pick $Input ([ :find $Input "\n" ] + 1) [ :len $Input ] ];
|
||||
} while=([ :len $Input ] > 0);
|
||||
|
||||
:return [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue