Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
e479337c
Commit
e479337c
authored
9 years ago
by
est31
Browse files
Options
Downloads
Patches
Plain Diff
Fix wrong replace from previous commit
parent
6df6b2a0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
builtin/common/misc_helpers.lua
+2
-2
2 additions, 2 deletions
builtin/common/misc_helpers.lua
with
2 additions
and
2 deletions
builtin/common/misc_helpers.lua
+
2
−
2
View file @
e479337c
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Localize functions to avoid table lookups (better performance).
-- Localize functions to avoid table lookups (better performance).
local
table_insert
=
table.insert
local
table_insert
=
table.insert
local
string_sub
,
string_
sub
=
string.sub
,
string.find
local
string_sub
,
string_
find
=
string.sub
,
string.find
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function
basic_dump
(
o
)
function
basic_dump
(
o
)
...
@@ -167,7 +167,7 @@ function string.split(str, delim, include_empty, max_splits, sep_is_pattern)
...
@@ -167,7 +167,7 @@ function string.split(str, delim, include_empty, max_splits, sep_is_pattern)
local
plain
=
not
sep_is_pattern
local
plain
=
not
sep_is_pattern
max_splits
=
max_splits
+
1
max_splits
=
max_splits
+
1
repeat
repeat
local
np
,
npe
=
string_
sub
(
str
,
delim
,
pos
,
plain
)
local
np
,
npe
=
string_
find
(
str
,
delim
,
pos
,
plain
)
np
,
npe
=
(
np
or
(
len
+
1
)),
(
npe
or
(
len
+
1
))
np
,
npe
=
(
np
or
(
len
+
1
)),
(
npe
or
(
len
+
1
))
if
(
not
np
)
or
(
max_splits
==
1
)
then
if
(
not
np
)
or
(
max_splits
==
1
)
then
np
=
len
+
1
np
=
len
+
1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment