1
0
Fork 0

Merge pull request #105932 from Rindbee/add-note-to-is_valid_filename

Clarify the conditions that need to be met for a valid file name in Godot
This commit is contained in:
Thaddeus Crews 2025-04-30 09:18:43 -05:00
commit 8fd7311032
No known key found for this signature in database
GPG Key ID: 8C6E5FEB5FC03CCC
2 changed files with 2 additions and 2 deletions

View File

@ -474,7 +474,7 @@
<method name="is_valid_filename" qualifiers="const">
<return type="bool" />
<description>
Returns [code]true[/code] if this string does not contain characters that are not allowed in file names ([code]:[/code] [code]/[/code] [code]\[/code] [code]?[/code] [code]*[/code] [code]"[/code] [code]|[/code] [code]%[/code] [code]&lt;[/code] [code]&gt;[/code]).
Returns [code]true[/code] if this string is a valid file name. A valid file name cannot be empty, begin or end with space characters, or contain characters that are not allowed ([code]:[/code] [code]/[/code] [code]\[/code] [code]?[/code] [code]*[/code] [code]"[/code] [code]|[/code] [code]%[/code] [code]&lt;[/code] [code]&gt;[/code]).
</description>
</method>
<method name="is_valid_float" qualifiers="const">

View File

@ -449,7 +449,7 @@
<method name="is_valid_filename" qualifiers="const">
<return type="bool" />
<description>
Returns [code]true[/code] if this string does not contain characters that are not allowed in file names ([code]:[/code] [code]/[/code] [code]\[/code] [code]?[/code] [code]*[/code] [code]"[/code] [code]|[/code] [code]%[/code] [code]&lt;[/code] [code]&gt;[/code]).
Returns [code]true[/code] if this string is a valid file name. A valid file name cannot be empty, begin or end with space characters, or contain characters that are not allowed ([code]:[/code] [code]/[/code] [code]\[/code] [code]?[/code] [code]*[/code] [code]"[/code] [code]|[/code] [code]%[/code] [code]&lt;[/code] [code]&gt;[/code]).
</description>
</method>
<method name="is_valid_float" qualifiers="const">