Skip to content

support sf asset protocol - #76

Merged
plally merged 5 commits into
mainfrom
sf-asset-protocol
Apr 15, 2026
Merged

support sf asset protocol#76
plally merged 5 commits into
mainfrom
sf-asset-protocol

Conversation

@plally

@plally plally commented Apr 11, 2026

Copy link
Copy Markdown
Member

No description provided.

@plally
plally marked this pull request as ready for review April 15, 2026 23:09
@plally
plally requested a review from Copilot April 15, 2026 23:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds configuration support intended to recognize additional asset-URI protocols (notably Starfall鈥檚 sf) alongside existing asset:// handling.

Changes:

  • Fixes IsAssetURI to use string.StartsWith.
  • Introduces assetURIProtocols in the default config and merges protocol lists across configs.
  • Adds a StarfallEx config entry intended to register the sf protocol.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
lua/cfc_http_restrictions/shared/url.lua Adjusts asset-URI detection helper (currently still hard-coded to asset://).
lua/cfc_http_restrictions/shared/config_loader.lua Merges assetURIProtocols from additional configs into the base config.
lua/cfc_http_restrictions/default_config.lua Defines default assetURIProtocols list (starts with asset).
lua/cfc_http_restrictions/configs/starfallex.lua Attempts to add sf to asset protocols for StarfallEx.

馃挕 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lua/cfc_http_restrictions/shared/config_loader.lua
Comment thread lua/cfc_http_restrictions/configs/starfallex.lua Outdated
Comment thread lua/cfc_http_restrictions/shared/url.lua Outdated
Comment thread lua/cfc_http_restrictions/shared/url.lua

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.


馃挕 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lua/cfc_http_restrictions/shared/url.lua
Comment thread lua/cfc_http_restrictions/shared/config_loader.lua
Comment thread lua/cfc_http_restrictions/shared/url.lua
@plally
plally merged commit 3a22cfd into main Apr 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants