Revision Difference
string.StripExtension#551781
<function name="StripExtension" parent="string" type="libraryfunc">
<description>Removes the extension of a path.</description>
<realm>Shared and Menu</realm>
<file line="137">lua/includes/extensions/string.lua</file>
<file line="137-L145">lua/includes/extensions/string.lua</file>
<args>
<arg name="path" type="string">The string eg. file-path to strip the extension.</arg>
</args>
<rets>
<ret name="" type="string">File-path without extension or unmodified string.</ret>
</rets>
</function>
<example>
<description>Demonstrates the use of string.StripExtension</description>
<code>MsgN(string.StripExtension("garrysmod/lua/modules/string.lua"))</code>
<output>"garrysmod/lua/modules/string"</output>
</example>