Skip to content

Commit

Permalink
docs: Small fix to snippet converting from Qt.Url to string
Browse files Browse the repository at this point in the history
On Windows we need to remove three slashes.
  • Loading branch information
bjorn committed Apr 15, 2024
1 parent 3fc8c6c commit 878a536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/scripting-doc/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ declare namespace Qt {
* case you need a local file path, you can use the following code:
*
* ```js
* var path = url.toString().replace(/^file:\/{2}/, '');
* var path = url.toString().replace(/^file:\/{3}/, (tiled.platform == 'windows') ? '' : '/');;
* ```
*
* Or have a look at whether an alternative property is available that
Expand Down

0 comments on commit 878a536

Please sign in to comment.