mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-10-09 16:53:59 +02:00
Initial open source release
This commit is contained in:
commit
11cf01f08e
488 files changed
+97180
No files matched your search
@@ -0,0 +1,23 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
func CSVRemoveFormulaStart(input string) string {
|
||||
if input == "" {
|
||||
return input
|
||||
}
|
||||
if len(input) > 0 && strings.ContainsAny(input[0:1], "=@+-") {
|
||||
return "'" + input
|
||||
}
|
||||
return input
|
||||
}
|
||||
|
||||
func CSVFromDate(d *time.Time) string {
|
||||
if d == nil {
|
||||
return ""
|
||||
}
|
||||
return CSVRemoveFormulaStart(d.Format(time.RFC3339))
|
||||
}
|
||||
Reference in new issue
Block a user