Compare commits

..

No commits in common. "main" and "v0.1.0" have entirely different histories.
main ... v0.1.0

View file

@ -1,15 +1,5 @@
package mikrotik package mikrotik
import ( func test() int {
// Standard return 137
"regexp"
)
func ScriptEscape(source string) (escaped string) {
rxp2 := regexp.MustCompile("([\"\\\\$])")
source = rxp2.ReplaceAllString(source, "\\$1")
rxp := regexp.MustCompile("\\r?\\n")
escaped = rxp.ReplaceAllString(source, "\\r\\\r\n \\n")
return
} }