Skip to content

Commit a833daa

Browse files
author
Jan Baudisch
committed
tipp: Str Zuweisungen nicht löschen
1 parent 1b1f826 commit a833daa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tipp.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if (-not ($in | Test-Path)) {
2222
exit 1
2323
}
2424

25-
$lines = Get-Content $in | Select-String -pattern '^\"' -notmatch | Where {$_.ToString().Trim().Length -gt 0}
25+
$lines = Get-Content $in | Select-String -pattern '^\"[^→]*$' -notmatch | Where {$_.ToString().Trim().Length -gt 0}
2626

2727
if ($out) {
2828
foreach ($line in $lines) {

tipp.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [ ! -f $1 ]; then
2020
fi
2121

2222
if [ $2 ]; then
23-
sed '/^\"/d' $1 | sed '/^[[:space:]]*$/d' - > $2
23+
sed '/^\"[^→]*$/d' $1 | sed '/^ *$/d' - > $2
2424
else
25-
sed '/^\"/d' $1 | sed '/^[[:space:]]*$/d' -
25+
sed '/^\"[^→]*$/d' $1 | sed '/^ *$/d' -
2626
fi

0 commit comments

Comments
 (0)