Skip to content

Commit

Permalink
no lentext allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
SandPoot committed May 29, 2021
1 parent 05f9e48 commit fa69a3f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/Redirector/textprocs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
///Prefix checking
/proc/dd_hasprefix(text, prefix)
var/start = 1
var/end = lentext(prefix) + 1
var/end = length(prefix) + 1
return findtext(text, prefix, start, end)

/proc/dd_hasPrefix(text, prefix)
var/start = 1
var/end = lentext(prefix) + 1
var/end = length(prefix) + 1
return findtextEx(text, prefix, start, end)


Expand All @@ -55,8 +55,8 @@

/// Turning text into lists
/proc/dd_text2list(text, separator)
var/textlength = lentext(text)
var/separatorlength = lentext(separator)
var/textlength = length(text)
var/separatorlength = length(separator)
var/list/textList = new /list()
var/searchPosition = 1
var/findPosition = 1
Expand All @@ -75,8 +75,8 @@
return textList

/proc/dd_text2List(text, separator)
var/textlength = lentext(text)
var/separatorlength = lentext(separator)
var/textlength = length(text)
var/separatorlength = length(separator)
var/list/textList = new /list()
var/searchPosition = 1
var/findPosition = 1
Expand Down

0 comments on commit fa69a3f

Please sign in to comment.